You are here

function bakery_user_view in Bakery Single Sign-On System 8.2

Same name and namespace in other branches
  1. 7.4 bakery.module \bakery_user_view()
  2. 7.2 bakery.module \bakery_user_view()

Implements hook_ENTITY_TYPE_view() for user entities.

File

./bakery.module, line 47
For implementing different hooks for bakery SSO functionality.

Code

function bakery_user_view(array &$build, $account, EntityViewDisplayInterface $display) {
  \Drupal::service('bakery.user_service')
    ->view($account, $build);
}