interface CKEditor5PluginInterface implements PluginInspectionInterface (View source)

Defines an interface for CKEditor5 plugins.

Methods

string
getPluginId()

Gets the plugin_id of the plugin instance.

array
getPluginDefinition()

Gets the definition of the plugin implementation.

array
getDynamicPluginConfig(array $static_plugin_config, EditorInterface $editor)

Allows a plugin to modify its static configuration.

Details

string getPluginId()

Gets the plugin_id of the plugin instance.

Return Value

string

The plugin_id of the plugin instance.

array getPluginDefinition()

Gets the definition of the plugin implementation.

Return Value

array

The plugin definition, as returned by the discovery object used by the plugin manager.

array getDynamicPluginConfig(array $static_plugin_config, EditorInterface $editor)

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.

EditorInterface $editor

A configured text editor object.

Return Value

array

Returns the received $static_plugin_config plus dynamic additions or alterations.

See also

CKEditor5AspectsOfCKEditor5Plugin::$config
CKEditor5PluginDefinition::getCKEditor5Config