You are here

public function FileMetadataPluginBase::__construct in File metadata manager 8

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

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

Overrides PluginBase::__construct

1 call to FileMetadataPluginBase::__construct()
Exif::__construct in file_mdm_exif/src/Plugin/FileMetadata/Exif.php
Constructs an Exif file metadata plugin.
1 method overrides FileMetadataPluginBase::__construct()
Exif::__construct in file_mdm_exif/src/Plugin/FileMetadata/Exif.php
Constructs an Exif file metadata plugin.

File

src/Plugin/FileMetadata/FileMetadataPluginBase.php, line 101

Class

FileMetadataPluginBase
Abstract implementation of a base File Metadata plugin.

Namespace

Drupal\file_mdm\Plugin\FileMetadata

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, CacheBackendInterface $cache_service, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->cache = $cache_service;
  $this->configFactory = $config_factory;
}