public function CKEditorVersionAwarePluginBase::__construct in CKEditor Media Embed Plugin 8
Constructs a \Drupal\ckeditor\Plugin\CKEditorPlugin\AutoEmbed 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.
\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.
\Drupal\Core\Config\ConfigFactory $config_factory: The config factory service.
Overrides PluginBase::__construct
File
- src/
CKEditorVersionAwarePluginBase.php, line 45
Class
- CKEditorVersionAwarePluginBase
- Defines a utlity plugin base for a CKEditor version aware plugin.
Namespace
Drupal\ckeditor_media_embedCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LibraryDiscoveryInterface $library_discovery, ConfigFactory $config_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->libraryDiscovery = $library_discovery;
$this->configFactory = $config_factory;
}