Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccountInterface.php

function AccountInterface::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.

3 methods override AccountInterface::getLastAccessedTime()
AccountProxy::getLastAccessedTime in core/lib/Drupal/Core/Session/AccountProxy.php
The timestamp when the account last accessed the site.
User::getLastAccessedTime in core/modules/user/src/Entity/User.php
The timestamp when the account last accessed the site.
UserSession::getLastAccessedTime in core/lib/Drupal/Core/Session/UserSession.php
The timestamp when the account last accessed the site.

File

core/lib/Drupal/Core/Session/AccountInterface.php, line 159

Class

AccountInterface
Defines an account interface which represents the current user.

Namespace

Drupal\Core\Session

Code

public function getLastAccessedTime();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal