public function ImagemagickIdentify::__construct in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 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\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\imagemagick\ImagemagickExecManagerInterface $exec_manager: The ImageMagick execution manager service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
File
- src/
Plugin/ FileMetadata/ ImagemagickIdentify.php, line 74
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, ModuleHandlerInterface $module_handler, ImagemagickExecManagerInterface $exec_manager, EventDispatcherInterface $dispatcher = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $cache_service, $config_factory);
$this->moduleHandler = $module_handler;
$this->execManager = $exec_manager;
$this->eventDispatcher = $dispatcher ?: \Drupal::service('event_dispatcher');
}