trait CKEditor5PluginConfigurableTrait in Drupal 10
Provides a trait for configurable CKEditor 5 plugins.
Hierarchy
- trait \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait
See also
\Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableInterface
10 files declare their use of CKEditor5PluginConfigurableTrait
- Alignment.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Alignment.php - Heading.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Heading.php - ImageResize.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ ImageResize.php - ImageUpload.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ ImageUpload.php - Language.php in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ Language.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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CKEditor5PluginConfigurableTrait:: |
public | function | ||
CKEditor5PluginConfigurableTrait:: |
public | function |