Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserHooks.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal