public function ImageStyleQualityImageEffect::__construct in Image Style Quality 8
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
- src/
Plugin/ ImageEffect/ ImageStyleQualityImageEffect.php, line 90
Class
- ImageStyleQualityImageEffect
- Allows you to change the quality of an image, per image style.
Namespace
Drupal\image_style_quality\Plugin\ImageEffectCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerInterface $logger, $toolkit, ConfigFactoryInterface $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
$this->mutableQualityToolkit = $toolkit;
$this->configFactory = $config_factory;
}