CKEditor5PluginConfigurableTrait.php
Same filename in other branches
Namespace
Drupal\ckeditor5\PluginFile
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginConfigurableTrait.php
View source
<?php
namespace Drupal\ckeditor5\Plugin;
/**
* Provides a trait for configurable CKEditor 5 plugins.
*
* @see \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableInterface
*/
trait CKEditor5PluginConfigurableTrait {
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
$this->configuration = $configuration + $this->defaultConfiguration();
}
}
Traits
Title | Deprecated | Summary |
---|---|---|
CKEditor5PluginConfigurableTrait | Provides a trait for configurable CKEditor 5 plugins. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.