You are here

public function EditorSelectorInterface::getEditor in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/EditorSelectorInterface.php \Drupal\quickedit\EditorSelectorInterface::getEditor()

Returns the in-place editor (an InPlaceEditor plugin) to use for a field.

Parameters

string $formatter_type: The field's formatter type name.

\Drupal\Core\Field\FieldItemListInterface $items: The field values to be in-place edited.

Return value

string|null The editor to use, or NULL to not enable in-place editing.

1 method overrides EditorSelectorInterface::getEditor()
EditorSelector::getEditor in core/modules/quickedit/src/EditorSelector.php
Returns the in-place editor (an InPlaceEditor plugin) to use for a field.

File

core/modules/quickedit/src/EditorSelectorInterface.php, line 23

Class

EditorSelectorInterface
Interface for selecting an in-place editor (an Editor plugin) for a field.

Namespace

Drupal\quickedit

Code

public function getEditor($formatter_type, FieldItemListInterface $items);