function user_user_logout in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/user.module \user_user_logout()
Implements hook_user_logout().
File
- core/
modules/ user/ user.module, line 499 - 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');
}