You are here

public function CKEditor5PluginInterface::getDynamicPluginConfig in Drupal 10

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.

See also

\Drupal\ckeditor5\Annotation\CKEditor5AspectsOfCKEditor5Plugin::$config

\Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::getCKEditor5Config()

1 method overrides CKEditor5PluginInterface::getDynamicPluginConfig()
CKEditor5PluginDefault::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefault.php
Allows a plugin to modify its static configuration.

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginInterface.php, line 37

Class

CKEditor5PluginInterface
Defines an interface for CKEditor5 plugins.

Namespace

Drupal\ckeditor5\Plugin

Code

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