You are here

function ip_login_user_logout in IP Login 4.x

Same name and namespace in other branches
  1. 6.2 ip_login.module \ip_login_user_logout()
  2. 7.3 ip_login.module \ip_login_user_logout()
  3. 7.2 ip_login.module \ip_login_user_logout()

Implements hook_user_logout().

File

./ip_login.module, line 95
Hooks for the IP login module.

Code

function ip_login_user_logout(AccountInterface $account) {
  $request = \Drupal::requestStack()
    ->getMasterRequest();
  $request->attributes
    ->set('ip_login_can_login_as_another_user', IpLoginController::canLoginAsAnotherUser($account));
}