public function WavesurferAudioPlayer::__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 AudioFieldPluginBase::__construct
File
- src/
Plugin/ AudioPlayer/ WavesurferAudioPlayer.php, line 43
Class
- WavesurferAudioPlayer
- Implements the Wavesurfer Audio Player plugin.
Namespace
Drupal\audiofield\Plugin\AudioPlayerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LibraryDiscovery $library_discovery, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, FileSystemInterface $file_system, ModuleHandler $module_handler) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $library_discovery, $messenger, $logger_factory, $file_system);
$this->moduleHandler = $module_handler;
}