public function QuickEditMetadataGeneratorInterface::generateEntityMetadata in Quick Edit 7
Generates in-place editing metadata for an entity.
Parameters
$entity_type: The type of entity being edited.
$entity: The entity being edited.
string $langcode: The name of the language for which the field is being edited.
Return value
array An array containing metadata with the following keys:
- label: the user-visible label for the entity in the given language.
1 method overrides QuickEditMetadataGeneratorInterface::generateEntityMetadata()
File
- includes/
QuickEditMetadataGeneratorInterface.php, line 28 - Contains Quick Edit's MetadataGeneratorInterface.
Class
- QuickEditMetadataGeneratorInterface
- Interface for generating in-place editing metadata for an entity field.
Code
public function generateEntityMetadata($entity_type, $entity, $langcode);