You are here

public function InPlaceEditorInterface::getMetadata in Drupal 9

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

Generates metadata that is needed specifically for this editor.

Will only be called by \Drupal\quickedit\MetadataGeneratorInterface::generate() when the passed in field & item values will use this editor.

Parameters

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

Return value

array A keyed array with metadata. Each key should be prefixed with the plugin ID of the editor.

2 methods override InPlaceEditorInterface::getMetadata()
Editor::getMetadata in core/modules/editor/src/Plugin/InPlaceEditor/Editor.php
Generates metadata that is needed specifically for this editor.
InPlaceEditorBase::getMetadata in core/modules/quickedit/src/Plugin/InPlaceEditorBase.php
Generates metadata that is needed specifically for this editor.

File

core/modules/quickedit/src/Plugin/InPlaceEditorInterface.php, line 42

Class

InPlaceEditorInterface
Defines an interface for in-place editors plugins.

Namespace

Drupal\quickedit\Plugin

Code

public function getMetadata(FieldItemListInterface $items);