You are here

trait CKEditor5PluginConfigurableTrait in Drupal 10

Provides a trait for configurable CKEditor 5 plugins.

Hierarchy

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

... See full list

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableTrait.php, line 10

Namespace

Drupal\ckeditor5\Plugin
View source
trait CKEditor5PluginConfigurableTrait {

  /**
   * {@inheritdoc}
   */
  public function getConfiguration() {
    return $this->configuration;
  }

  /**
   * {@inheritdoc}
   */
  public function setConfiguration(array $configuration) {
    $this->configuration = $configuration + $this
      ->defaultConfiguration();
  }

}

Members