You are here

public function Account::getLastAccessedTime in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Session/Account.php \Drupal\service_container\Session\Account::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

src/Session/Account.php, line 148
Contains \Drupal\service_container\Session\Account.

Class

Account
Wraps the global user to provide the account interface.

Namespace

Drupal\service_container\Session

Code

public function getLastAccessedTime() {
  return $GLOBALS['user']->access;
}