public function ImageSelectionImageEffect::__construct in Image Effects 8
Same name and namespace in other branches
- 8.3 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/ImageSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\ImageSelectionImageEffect::__construct()
- 8.2 tests/modules/image_effects_module_test/src/Plugin/ImageEffect/ImageSelectionImageEffect.php \Drupal\image_effects_module_test\Plugin\ImageEffect\ImageSelectionImageEffect::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ImageEffectBase::__construct
File
- tests/
modules/ image_effects_module_test/ src/ Plugin/ ImageEffect/ ImageSelectionImageEffect.php, line 33
Class
- ImageSelectionImageEffect
- Test effect that uses the image selector plugin to get an image.
Namespace
Drupal\image_effects_module_test\Plugin\ImageEffectCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, ImageEffectsPluginBaseInterface $image_selector_plugin) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
$this->imageSelector = $image_selector_plugin;
}