function Editor::editorPluginManager

Same name in other branches
  1. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::editorPluginManager()
  2. 8.9.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::editorPluginManager()
  3. 11.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::editorPluginManager()

Returns the editor plugin manager.

Return value

\Drupal\Component\Plugin\PluginManagerInterface

File

core/modules/editor/src/Entity/Editor.php, line 158

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

protected function editorPluginManager() {
    if (!$this->editorPluginManager) {
        $this->editorPluginManager = \Drupal::service('plugin.manager.editor');
    }
    return $this->editorPluginManager;
}

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