trait CKEditor5PluginConfigurableTrait

Same name and namespace in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableTrait.php \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableTrait.php \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableTrait

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
Image.php in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php
ImageResize.php in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/ImageResize.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


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.