function UserSession::getLastAccessedTime
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Session/UserSession.php \Drupal\Core\Session\UserSession::getLastAccessedTime()
- 10 core/lib/Drupal/Core/Session/UserSession.php \Drupal\Core\Session\UserSession::getLastAccessedTime()
- 11.x core/lib/Drupal/Core/Session/UserSession.php \Drupal\Core\Session\UserSession::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/ UserSession.php, line 188
Class
- UserSession
- An implementation of the user account interface for the global user.
Namespace
Drupal\Core\SessionCode
public function getLastAccessedTime() {
return $this->access;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.