InPlaceEditorInterface
interface InPlaceEditorInterface implements PluginInspectionInterface (View source)
Defines an interface for in-place editors plugins.
Methods
Gets the definition of the plugin implementation.
Checks whether this in-place editor is compatible with a given field.
Generates metadata that is needed specifically for this editor.
Returns the attachments for this editor.
Details
string
getPluginId()
Gets the plugin_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
bool
isCompatible(FieldItemListInterface $items)
Checks whether this in-place editor is compatible with a given field.
array
getMetadata(FieldItemListInterface $items)
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.
array
getAttachments()
Returns the attachments for this editor.