function CKEditor5PluginManagerInterface::getCKEditor5PluginConfig

Same name in other branches
  1. 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginManagerInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface::getCKEditor5PluginConfig()
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginManagerInterface.php \Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface::getCKEditor5PluginConfig()

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_cl…

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.