MetadataGeneratorInterface::generateEntityMetadata

public MetadataGeneratorInterface::generateEntityMetadata(EntityInterface $entity)

Generates in-place editing metadata for an entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity, in the language in which one of its fields 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.

File

core/modules/quickedit/src/MetadataGeneratorInterface.php, line 22

Class

MetadataGeneratorInterface
Interface for generating in-place editing metadata.

Namespace

Drupal\quickedit

Code

public function generateEntityMetadata(EntityInterface $entity);
doc_Drupal
2016-10-29 09:28:25
Comments
Leave a Comment

Please login to continue.