public function EditorSelectorInterface::getEditor

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

Parameters

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

\Drupal\field\Plugin\Core\Entity\FieldInstance $instance: The field's instance info.

array $items: The field's item values.

Return value

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

1 method overrides EditorSelectorInterface::getEditor()
EditorSelector::getEditor in drupal/core/modules/edit/lib/Drupal/edit/EditorSelector.php
Returns the in-place editor (an Editor plugin) to use for a field.

File

drupal/core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php, line 30
Contains \Drupal\edit\EditorSelectorInterface.

Class

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

Namespace

Drupal\edit

Code

public function getEditor($formatter_type, FieldInstance $instance, array $items);