interface QuickEditMetadataGeneratorInterface in Quick Edit 7
Interface for generating in-place editing metadata for an entity field.
Hierarchy
- interface \QuickEditMetadataGeneratorInterface
Expanded class hierarchy of QuickEditMetadataGeneratorInterface
All classes that implement QuickEditMetadataGeneratorInterface
File
- includes/
QuickEditMetadataGeneratorInterface.php, line 13 - Contains Quick Edit's MetadataGeneratorInterface.
View source
interface QuickEditMetadataGeneratorInterface {
/**
* Generates in-place editing metadata for an entity.
*
* @param $entity_type
* The type of entity being edited.
* @param $entity
* The entity being edited.
* @param string $langcode
* The name of the language for which the field is being edited.
* @return array
* An array containing metadata with the following keys:
* - label: the user-visible label for the entity in the given language.
*/
public function generateEntityMetadata($entity_type, $entity, $langcode);
/**
* Generates in-place editing metadata for an entity field.
*
* @param $entity_type
* The type of entity being edited.
* @param $entity
* The entity being edited.
* @param arrray $instance
* The field instance of the field being edited.
* @param string $langcode
* The name of the language for which the field is being edited.
* @param string $view_mode
* The view mode the field should be rerendered in.
* @return array
* An array containing metadata with the following keys:
* - label: the user-visible label for the field.
* - access: whether the current user may edit the field or not.
* - editor: which editor should be used for the field.
* - aria: the ARIA label.
* - custom: (optional) any additional metadata that the editor provides.
*/
public function generateFieldMetadata($entity_type, $entity, array $instance, $langcode, $view_mode);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
QuickEditMetadataGeneratorInterface:: |
public | function | Generates in-place editing metadata for an entity. | 1 |
QuickEditMetadataGeneratorInterface:: |
public | function | Generates in-place editing metadata for an entity field. | 1 |