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

Breadcrumb

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

function UserRequestSubscriber::__construct

Constructs a new UserRequestSubscriber.

Parameters

\Drupal\Core\Session\AccountInterface $account: The current user.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

core/modules/user/src/EventSubscriber/UserRequestSubscriber.php, line 42

Class

UserRequestSubscriber
Updates the current user's last access time.

Namespace

Drupal\user\EventSubscriber

Code

public function __construct(AccountInterface $account, EntityTypeManagerInterface $entity_type_manager, TimeInterface $time) {
    $this->account = $account;
    $this->entityTypeManager = $entity_type_manager;
}

API Navigation

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