trait CKEditor5PluginConfigurableTrait
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableTrait.php \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableTrait.php \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait
Provides a trait for configurable CKEditor 5 plugins.
Hierarchy
- trait \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait
See also
\Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableInterface
11 files declare their use of CKEditor5PluginConfigurableTrait
- Alignment.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Alignment.php - CodeBlock.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ CodeBlock.php - Heading.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Heading.php - Image.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Image.php - ImageResize.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ ImageResize.php
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginConfigurableTrait.php, line 10
Namespace
Drupal\ckeditor5\PluginView source
trait CKEditor5PluginConfigurableTrait {
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
$this->configuration = $configuration + $this->defaultConfiguration();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
CKEditor5PluginConfigurableTrait::getConfiguration | public | function | |
CKEditor5PluginConfigurableTrait::setConfiguration | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.