function CKEditor5PluginDefault::__construct
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::__construct()
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.