function LogoutFinalizerTest::userLogout

Implements hook_user_logout().

Attributes

Parameters

\Drupal\Core\Session\AccountInterface $account: The account that just logged out.

File

core/modules/user/tests/src/Kernel/LogoutFinalizerTest.php, line 79

Class

LogoutFinalizerTest
Tests logout finalization.

Namespace

Drupal\Tests\user\Kernel

Code

public function userLogout(AccountInterface $account) : void {
  if (!isset($this->testUserId)) {
    $this->testUserId = $account->id();
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.