function InPlaceEditorInterface::getMetadata
Same name in other branches
- 8.9.x core/modules/quickedit/src/Plugin/InPlaceEditorInterface.php \Drupal\quickedit\Plugin\InPlaceEditorInterface::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.
3 methods override InPlaceEditorInterface::getMetadata()
- Editor::getMetadata in core/
modules/ quickedit/ src/ Plugin/ InPlaceEditor/ Editor.php - Generates metadata that is needed specifically for this editor.
- Editor::getMetadata in core/
modules/ editor/ src/ Plugin/ InPlaceEditor/ Editor.php - Generates metadata that is needed specifically for this editor.
- InPlaceEditorBase::getMetadata in core/
modules/ quickedit/ src/ Plugin/ InPlaceEditorBase.php - Generates metadata that is needed specifically for this editor.
File
-
core/
modules/ quickedit/ src/ Plugin/ InPlaceEditorInterface.php, line 42
Class
- InPlaceEditorInterface
- Defines an interface for in-place editors plugins.
Namespace
Drupal\quickedit\PluginCode
public function getMetadata(FieldItemListInterface $items);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.