You are here

public function CKEditor5PluginDefault::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.

Overrides CKEditor5PluginInterface::getDynamicPluginConfig

See also

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

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

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;
}