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