function LogoutFinalizerTest::userLogout
Implements hook_user_logout().
Attributes
#[Hook('user_logout')]
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\KernelCode
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.