function CKEditor5PluginDefault::__construct
Same name in other branches
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::__construct()
- 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::__construct()
2 calls to CKEditor5PluginDefault::__construct()
- Media::__construct in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Media.php - Media constructor.
- MediaLibrary::__construct in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ MediaLibrary.php - MediaLibrary constructor.
2 methods override CKEditor5PluginDefault::__construct()
- Media::__construct in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Media.php - Media constructor.
- MediaLibrary::__construct in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ MediaLibrary.php - MediaLibrary constructor.
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefault.php, line 24
Class
- CKEditor5PluginDefault
- Defines the default CKEditor 5 plugin implementation.
Namespace
Drupal\ckeditor5\PluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
// Ensure the configuration is set as expected for configurable plugins.
if ($this instanceof CKEditor5PluginConfigurableInterface) {
$this->setConfiguration($configuration);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.