You are here

public function Dropdown::__construct in Image Effects 8

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

Constructs a ImageEffectsPluginBase 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.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Psr\Log\LoggerInterface $logger: The image_effects logger.

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

Overrides ImageEffectsPluginBase::__construct

File

src/Plugin/image_effects/ImageSelector/Dropdown.php, line 51

Class

Dropdown
Dropdown image selector plugin.

Namespace

Drupal\image_effects\Plugin\image_effects\ImageSelector

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, LoggerInterface $logger, ImageFactory $image_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory, $logger);
  $this->imageFactory = $image_factory;
}