You are here

public function QuickEditInPlaceEditorInterface::getMetadata in Quick Edit 7

Generates metadata that is needed specifically for this editor.

Will only be called by QuickEditMetadataGeneratorInterface::generate() when the passed in field instance & item values will use this in-place editor.

Parameters

array $instance: The field instance to be in-place edited.

array $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 QuickEditInPlaceEditorInterface::getMetadata()
CKEditor::getMetadata in InPlaceEditors/CKEditor.php
Implements QuickEditInPlaceEditorInterface::getMetadata().
FormEditor::getMetadata in InPlaceEditors/formEditor.php
Implements QuickEditInPlaceEditorInterface::getMetadata().
PlainTextEditor::getMetadata in InPlaceEditors/plainTextEditor.php
Implements QuickEditInPlaceEditorInterface::getMetadata().

File

includes/QuickEditInPlaceEditorInterface.php, line 44
Contains Quick Edit's InPlaceEditorInterface.

Class

QuickEditInPlaceEditorInterface
Defines an interface for in-place editors plugins.

Code

public function getMetadata(array $instance, array $items);