You are here

public function MediaThumbnailBase::__construct in Media Thumbnails 8

Constructs a new Media Thumbnail class.

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\ConfigFactory $config: The config factory.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

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

Overrides PluginBase::__construct

File

src/Plugin/MediaThumbnailBase.php, line 57

Class

MediaThumbnailBase
Base class for Media thumbnail plugins.

Namespace

Drupal\media_thumbnails\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactory $config, FileSystemInterface $file_system, LoggerInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->config = $config;
  $this->fileSystem = $file_system;
  $this->logger = $logger;
}