function CKEditor5PluginManager::getPlugin
Same name in other branches
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getPlugin()
- 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getPlugin()
Overrides CKEditor5PluginManagerInterface::getPlugin
2 calls to CKEditor5PluginManager::getPlugin()
- CKEditor5PluginManager::getCKEditor5PluginConfig in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php - Gets the configuration for the CKEditor 5 plugins enabled in this editor.
- CKEditor5PluginManager::getEnabledDefinitions in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php - Filter list of definitions by enabled plugins only.
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php, line 118
Class
- CKEditor5PluginManager
- Provides a CKEditor 5 plugin manager.
Namespace
Drupal\ckeditor5\PluginCode
public function getPlugin(string $plugin_id, ?EditorInterface $editor) : CKEditor5PluginInterface {
$configuration = $editor ? self::getPluginConfiguration($editor, $plugin_id) : [];
return $this->createInstance($plugin_id, $configuration);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.