EditorSelector::__construct

public EditorSelector::__construct(PluginManagerInterface $editor_manager, FormatterPluginManager $formatter_manager)

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;
}
doc_Drupal
2016-10-29 09:03:53
Comments
Leave a Comment

Please login to continue.