function LoginFinalizerTest::userLogin
Implements hook_user_login().
Attributes
#[Hook('user_login')]
Parameters
\Drupal\user\UserInterface $account: The user object on which the operation was just performed.
File
-
core/
modules/ user/ tests/ src/ Kernel/ LoginFinalizerTest.php, line 85
Class
- LoginFinalizerTest
- Tests login finalization.
Namespace
Drupal\Tests\user\KernelCode
public function userLogin(UserInterface $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.