function EditorSelector::__construct

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

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