function InPlaceEditorBase::getMetadata
Same name and namespace in other branches
- 8.9.x 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 21
Class
- InPlaceEditorBase
- Defines a base in-place editor implementation.
Namespace
Drupal\quickedit\PluginCode
public function getMetadata(FieldItemListInterface $items) {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.