public function User::getLastAccessedTime in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Entity/User.php \Drupal\user\Entity\User::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/
modules/ user/ src/ Entity/ User.php, line 249 - Contains \Drupal\user\Entity\User.
Class
- User
- Defines the user entity class.
Namespace
Drupal\user\EntityCode
public function getLastAccessedTime() {
return $this
->get('access')->value;
}