You are here

public function EditorSelector::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/quickedit/src/EditorSelector.php \Drupal\quickedit\EditorSelector::__construct()

Constructs a new EditorSelector.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $editor_manager: The manager for editor plugins.

\Drupal\Core\Field\FormatterPluginManager $formatter_manager: The manager for formatter plugins.

File

core/modules/quickedit/src/EditorSelector.php, line 44

Class

EditorSelector
Selects an in-place editor (an InPlaceEditor plugin) for a field.

Namespace

Drupal\quickedit

Code

public function __construct(PluginManagerInterface $editor_manager, FormatterPluginManager $formatter_manager) {
  $this->editorManager = $editor_manager;
  $this->formatterManager = $formatter_manager;
}