public function QuickEditMetadataGenerator::generateEntityMetadata in Quick Edit 7
Implements QuickEditMetadataGeneratorInterface::generateEntityMetadata().
Overrides QuickEditMetadataGeneratorInterface::generateEntityMetadata
File
- includes/
QuickEditMetadataGenerator.php, line 49
Class
- QuickEditMetadataGenerator
- Generates in-place editing metadata for an entity field.
Code
public function generateEntityMetadata($entity_type, $entity, $langcode) {
return array(
'label' => check_plain($entity->title),
);
}