You are here

protected function Editor::editorPluginManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::editorPluginManager()
  2. 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::editorPluginManager()

Returns the editor plugin manager.

Return value

\Drupal\Component\Plugin\PluginManagerInterface

2 calls to Editor::editorPluginManager()
Editor::calculateDependencies in core/modules/editor/src/Entity/Editor.php
Calculates dependencies and stores them in the dependency property.
Editor::__construct in core/modules/editor/src/Entity/Editor.php
Constructs an Entity object.

File

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

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