You are here

public function TokenAuthUser::setLastLoginTime in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
  2. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
  3. 8.3 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()
  4. 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::setLastLoginTime()

Sets the UNIX timestamp when the user last logged in.

Parameters

int $timestamp: Timestamp of the last login time.

Return value

$this The called user entity.

Overrides UserInterface::setLastLoginTime

File

src/Authentication/TokenAuthUser.php, line 790

Class

TokenAuthUser
The decorated user class with token information.

Namespace

Drupal\simple_oauth\Authentication

Code

public function setLastLoginTime($timestamp) {
  return $this->subject
    ->setLastLoginTime($timestamp);
}