You are here

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()
QuickEditMetadataGenerator::generateEntityMetadata in includes/QuickEditMetadataGenerator.php
Implements 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);