You are here

public function AudioFieldPluginBase::__construct in AudioField 8

Constructs a \Drupal\Component\Plugin\PluginBase object.

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.

Overrides PluginBase::__construct

1 call to AudioFieldPluginBase::__construct()
WavesurferAudioPlayer::__construct in src/Plugin/AudioPlayer/WavesurferAudioPlayer.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides AudioFieldPluginBase::__construct()
WavesurferAudioPlayer::__construct in src/Plugin/AudioPlayer/WavesurferAudioPlayer.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/AudioFieldPluginBase.php, line 60

Class

AudioFieldPluginBase
Base class for audiofield plugins. Includes global functions.

Namespace

Drupal\audiofield

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LibraryDiscovery $library_discovery, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, FileSystemInterface $file_system) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->libraryDiscovery = $library_discovery;
  $this->messenger = $messenger;
  $this->loggerFactory = $logger_factory;
  $this->fileSystem = $file_system;
}