public function MaskImageEffect::__construct in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/MaskImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\MaskImageEffect::__construct()
- 8.2 src/Plugin/ImageEffect/MaskImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\MaskImageEffect::__construct()
Constructs a MaskImageEffect 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/ MaskImageEffect.php, line 58
Class
- MaskImageEffect
- Class MaskImageEffect.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
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;
}