You are here

public function Exif::__construct in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 file_mdm_exif/src/Plugin/FileMetadata/Exif.php \Drupal\file_mdm_exif\Plugin\FileMetadata\Exif::__construct()

Constructs an Exif file metadata 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.

\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_guesser: The MIME type mapping service.

\Drupal\file_mdm_exif\ExifTagMapperInterface $tag_mapper: The EXIF tag mapping service.

Overrides FileMetadataPluginBase::__construct

File

file_mdm_exif/src/Plugin/FileMetadata/Exif.php, line 67

Class

Exif
FileMetadata plugin for EXIF.

Namespace

Drupal\file_mdm_exif\Plugin\FileMetadata

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, CacheBackendInterface $cache_service, ConfigFactoryInterface $config_factory, MimeTypeGuesserInterface $mime_type_guesser, ExifTagMapperInterface $tag_mapper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $cache_service, $config_factory);
  $this->mimeTypeGuesser = $mime_type_guesser;
  $this->tagMapper = $tag_mapper;
}