function CKEditor5PluginInterface::getDynamicPluginConfig
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginInterface::getDynamicPluginConfig()
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginInterface::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.
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
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginInterface.php, line 37
Class
- CKEditor5PluginInterface
- Defines an interface for CKEditor 5 plugins.
Namespace
Drupal\ckeditor5\PluginCode
public function getDynamicPluginConfig(array $static_plugin_config, EditorInterface $editor) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.