function UserHooks::userLogout

Implements hook_user_logout().

File

core/modules/user/src/Hook/UserHooks.php, line 244

Class

UserHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

public function userLogout(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.