You are here

function quickedit_entity_view_alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/quickedit/quickedit.module \quickedit_entity_view_alter()

Implements hook_entity_view_alter().

File

core/modules/quickedit/quickedit.module, line 150
Provides in-place content editing functionality for fields.

Code

function quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityViewDisplayInterface $display) {
  $build['#attributes']['data-quickedit-entity-id'] = $entity
    ->getEntityTypeId() . '/' . $entity
    ->id();
}