You are here

public function AccountProxy::getLastAccessedTime in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Session/AccountProxy.php \Drupal\Core\Session\AccountProxy::getLastAccessedTime()
  2. 10 core/lib/Drupal/Core/Session/AccountProxy.php \Drupal\Core\Session\AccountProxy::getLastAccessedTime()

The timestamp when the account last accessed the site.

A value of 0 means the user has never accessed the site.

Return value

int Timestamp of the last access.

Overrides AccountInterface::getLastAccessedTime

File

core/lib/Drupal/Core/Session/AccountProxy.php, line 189

Class

AccountProxy
A proxied implementation of AccountInterface.

Namespace

Drupal\Core\Session

Code

public function getLastAccessedTime() {
  return $this
    ->getAccount()
    ->getLastAccessedTime();
}