You are here

function extra_field_entity_view in Extra Field 8

Same name and namespace in other branches
  1. 8.2 extra_field.module \extra_field_entity_view()

Implements hook_entity_view().

File

./extra_field.module, line 22
Hook implementations for Extra Field module.

Code

function extra_field_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {

  /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
  \Drupal::service('plugin.manager.extra_field_display')
    ->entityView($build, $entity, $display, $view_mode);
}