public function ImagemagickIdentify::__construct in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/FileMetadata/ImagemagickIdentify.php \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::__construct()
Constructs an ImagemagickIdentify plugin.
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.
\Drupal\Core\Cache\CacheBackendInterface $cache_service: The cache service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\imagemagick\ImagemagickExecManagerInterface $exec_manager: The ImageMagick execution manager service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager service.
File
- src/
Plugin/ FileMetadata/ ImagemagickIdentify.php, line 61
Class
- ImagemagickIdentify
- FileMetadata plugin for ImageMagick's identify results.
Namespace
Drupal\imagemagick\Plugin\FileMetadataCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, CacheBackendInterface $cache_service, ConfigFactoryInterface $config_factory, ImagemagickExecManagerInterface $exec_manager, EventDispatcherInterface $dispatcher, StreamWrapperManagerInterface $stream_wrapper_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $cache_service, $config_factory, $stream_wrapper_manager);
$this->execManager = $exec_manager;
$this->eventDispatcher = $dispatcher;
}