function WysiwygEditor::getMetadata

Same name and namespace in other branches
  1. 8.9.x core/modules/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php \Drupal\quickedit_test\Plugin\InPlaceEditor\WysiwygEditor::getMetadata()

Overrides InPlaceEditorBase::getMetadata

File

core/modules/quickedit/tests/modules/src/Plugin/InPlaceEditor/WysiwygEditor.php, line 36

Class

WysiwygEditor
Defines the 'wysiwyg' in-place editor.

Namespace

Drupal\quickedit_test\Plugin\InPlaceEditor

Code

public function getMetadata(FieldItemListInterface $items) {
    $metadata['format'] = $items[0]->format;
    return $metadata;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.