Exemplo n.º 1
0
 /**
  * Constructs an WatermarkImageEffect object
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param array $plugin_definition
  *   The plugin implementation definition.
  * @param \Psr\Log\LoggerInterface $logger
  *   A logger instance.
  * @param \Drupal\Core\Image\ImageFactory $image_factory
  *   The image factory service.
  * @param \Drupal\image_effects\Plugin\ImageEffectsPluginBaseInterface $image_selector
  *   The image selector plugin.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ImageFactory $image_factory, ImageEffectsPluginBaseInterface $image_selector)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
     $this->imageFactory = $image_factory;
     $this->imageSelector = $image_selector;
 }
Exemplo n.º 2
0
 /**
  * Constructs an AutoOrientImageEffect object.
  *
  * @param array $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param array $plugin_definition
  *   The plugin implementation definition.
  * @param \Psr\Log\LoggerInterface $logger
  *   A logger instance.
  * @param \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_guesser
  *   The MIME type guessing service.
  * @param \Drupal\Core\File\FileSystemInterface $file_system
  *   The file system service.
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, MimeTypeGuesserInterface $mime_type_guesser, FileSystemInterface $file_system)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
     $this->mimeTypeGuesser = $mime_type_guesser;
     $this->fileSystem = $file_system;
 }
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ImageEffectsFontSelectorPluginInterface $font_selector_plugin)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
     $this->fontSelector = $font_selector_plugin;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, CropStorageInterface $crop_storage, ConfigEntityStorageInterface $crop_type_storage) {
   parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
   $this->storage = $crop_storage;
   $this->typeStorage = $crop_type_storage;
 }