You are here

function InPlaceEditorBase::getMetadata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/Plugin/InPlaceEditorBase.php \Drupal\quickedit\Plugin\InPlaceEditorBase::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.

Overrides InPlaceEditorInterface::getMetadata

1 method overrides InPlaceEditorBase::getMetadata()
WysiwygEditor::getMetadata in core/modules/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php
Generates metadata that is needed specifically for this editor.

File

core/modules/quickedit/src/Plugin/InPlaceEditorBase.php, line 26
Contains \Drupal\quickedit\Plugin\InPlaceEditorBase.

Class

InPlaceEditorBase
Defines a base in-place editor implementation.

Namespace

Drupal\quickedit\Plugin

Code

function getMetadata(FieldItemListInterface $items) {
  return array();
}