You are here

function user_user_logout in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/user.module \user_user_logout()

Implements hook_user_logout().

File

core/modules/user/user.module, line 617
Enables the user registration and login system.

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');
}