function CKEditor5PluginDefault::__construct

Same name in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::__construct()
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::__construct()
3 calls to CKEditor5PluginDefault::__construct()
Language::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Language.php
Language constructor.
Media::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Media.php
Media constructor.
MediaLibrary::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/MediaLibrary.php
MediaLibrary constructor.
3 methods override CKEditor5PluginDefault::__construct()
Language::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Language.php
Language constructor.
Media::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Media.php
Media constructor.
MediaLibrary::__construct in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/MediaLibrary.php
MediaLibrary constructor.

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php, line 24

Class

CKEditor5PluginDefault
Defines the default CKEditor 5 plugin implementation.

Namespace

Drupal\ckeditor5\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    // Ensure the configuration is set as expected for configurable plugins.
    if ($this instanceof CKEditor5PluginConfigurableInterface) {
        $this->setConfiguration($configuration);
    }
}

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