function CKEditor5PluginDefault::getDynamicPluginConfig

Same name and namespace in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::getDynamicPluginConfig()
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefault::getDynamicPluginConfig()

Allows a plugin to modify its static configuration.

Parameters

array $static_plugin_config: The ckeditor5.config entry from the YAML or annotation, if any. If none is specified in the YAML or annotation, then the empty array.

\Drupal\editor\EditorInterface $editor: A configured text editor object.

Return value

array Returns the received $static_plugin_config plus dynamic additions or alterations.

Overrides CKEditor5PluginInterface::getDynamicPluginConfig

11 methods override CKEditor5PluginDefault::getDynamicPluginConfig()
Alignment::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Alignment.php
Filters the alignment options to those chosen in editor config.
CodeBlock::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/CodeBlock.php
Allows a plugin to modify its static configuration.
GlobalAttribute::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/GlobalAttribute.php
Allows a plugin to modify its static configuration.
Heading::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php
Filters the header options to those chosen in editor config.
Image::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php
Allows a plugin to modify its static configuration.

... See full list

File

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

Class

CKEditor5PluginDefault
Defines the default CKEditor 5 plugin implementation.

Namespace

Drupal\ckeditor5\Plugin

Code

public function getDynamicPluginConfig(array $static_plugin_config, EditorInterface $editor) : array {
    return $static_plugin_config;
}

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