function user_user_logout

Same name in other branches
  1. 9 core/modules/user/user.module \user_user_logout()
  2. 8.9.x core/modules/user/user.module \user_user_logout()
  3. 10 core/modules/user/user.module \user_user_logout()

Implements hook_user_logout().

File

core/modules/user/user.module, line 446

Code

function user_user_logout(AccountInterface $account) {
    // Reset static cache of default variables in template_preprocess() to reflect
    // the new user.
    drupal_static_reset('template_preprocess');
}

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