You are here

public function AccountProxy::getLastAccessedTime in Restrict Login or Role Access by IP Address 8.4

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/AccountProxy.php, line 153
Contains \Drupal\restrict_by_ip\Session\AccountProxy.

Class

AccountProxy
When the current user is loaded, remove any roles that are restricted based on IP whitelists. Proxy all other method calls to the original current_user service.

Namespace

Drupal\restrict_by_ip\Session

Code

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