You are here

public function CKEditor5PluginManagerInterface::getCKEditor5PluginConfig in Drupal 10

Gets the configuration for the CKEditor 5 plugins enabled in this editor.

Parameters

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

Return value

array[] An array with two key-value pairs: 1. 'plugins' lists all plugins to load 2. 'config' lists the configuration for all these plugins.

See also

https://ckeditor.com/docs/ckeditor5/latest/api/module_editor-classic_cla...

\Drupal\ckeditor5\Plugin\Editor\CKEditor5::getJSSettings()

1 method overrides CKEditor5PluginManagerInterface::getCKEditor5PluginConfig()
CKEditor5PluginManager::getCKEditor5PluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php
Gets the configuration for the CKEditor 5 plugins enabled in this editor.

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginManagerInterface.php, line 98

Class

CKEditor5PluginManagerInterface
Provides the interface for a plugin manager of CKEditor 5 plugins.

Namespace

Drupal\ckeditor5\Plugin

Code

public function getCKEditor5PluginConfig(EditorInterface $editor) : array;