function ContentModerationHooks::entityView

Implements hook_entity_view().

File

core/modules/content_moderation/src/Hook/ContentModerationHooks.php, line 185

Class

ContentModerationHooks
Hook implementations for content_moderation.

Namespace

Drupal\content_moderation\Hook

Code

public function entityView(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.