You are here

public function WatermarkImageEffect::__construct in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageEffect/WatermarkImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\WatermarkImageEffect::__construct()
  2. 8.2 src/Plugin/ImageEffect/WatermarkImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\WatermarkImageEffect::__construct()

Constructs an WatermarkImageEffect object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Image\ImageFactory $image_factory: The image factory service.

\Drupal\image_effects\Plugin\ImageEffectsPluginBaseInterface $image_selector: The image selector plugin.

Overrides ImageEffectBase::__construct

File

src/Plugin/ImageEffect/WatermarkImageEffect.php, line 58

Class

WatermarkImageEffect
Class WatermarkImageEffect.

Namespace

Drupal\image_effects\Plugin\ImageEffect

Code

public function __construct(array $configuration, $plugin_id, array $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;
}