You are here

public function CKEditor5PluginManagerInterface::getPlugin in Drupal 10

Returns a CKEditor 5 plugin with configuration from the editor.

Parameters

string $plugin_id: The plugin ID.

\Drupal\editor\EditorInterface|null $editor: The editor to load configuration from.

Return value

\Drupal\ckeditor5\Plugin\CKEditor5PluginInterface The CKEditor 5 plugin instance.

1 method overrides CKEditor5PluginManagerInterface::getPlugin()
CKEditor5PluginManager::getPlugin in core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php
Returns a CKEditor 5 plugin with configuration from the editor.

File

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

Class

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

Namespace

Drupal\ckeditor5\Plugin

Code

public function getPlugin(string $plugin_id, ?EditorInterface $editor) : CKEditor5PluginInterface;