function UserHooks::userLogout
Implements hook_user_logout().
File
-
core/
modules/ user/ src/ Hook/ UserHooks.php, line 248
Class
- UserHooks
- Hook implementations for user.
Namespace
Drupal\user\HookCode
public function userLogout(AccountInterface $account) : void {
// Reset default theme variables.
\Drupal::service('theme.manager')->resetActiveTheme();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.