function CKEditor5PluginManagerInterface::getPlugin

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

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.

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;

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