function content_moderation_entity_view

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/content_moderation.module \content_moderation_entity_view()
  2. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_view()
  3. 10 core/modules/content_moderation/content_moderation.module \content_moderation_entity_view()

Implements hook_entity_view().

File

core/modules/content_moderation/content_moderation.module, line 189

Code

function content_moderation_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) {
    \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityOperations::class)
        ->entityView($build, $entity, $display, $view_mode);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.