function WysiwygEditor::getMetadata
Same name in other branches
- 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\InPlaceEditorCode
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.