function Editor::getMetadata
Same name in other branches
- 9 core/modules/quickedit/src/Plugin/InPlaceEditor/Editor.php \Drupal\quickedit\Plugin\InPlaceEditor\Editor::getMetadata()
- 9 core/modules/editor/src/Plugin/InPlaceEditor/Editor.php \Drupal\editor\Plugin\InPlaceEditor\Editor::getMetadata()
Overrides InPlaceEditorInterface::getMetadata
File
-
core/
modules/ editor/ src/ Plugin/ InPlaceEditor/ Editor.php, line 46
Class
- Editor
- Defines the formatted text in-place editor.
Namespace
Drupal\editor\Plugin\InPlaceEditorCode
public function getMetadata(FieldItemListInterface $items) {
$format_id = $items[0]->format;
$metadata['format'] = $format_id;
$metadata['formatHasTransformations'] = $this->textFormatHasTransformationFilters($format_id);
return $metadata;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.