public static function UserRequestSubscriber::getSubscribedEvents in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/src/EventSubscriber/UserRequestSubscriber.php \Drupal\user\EventSubscriber\UserRequestSubscriber::getSubscribedEvents()
- 10 core/modules/user/src/EventSubscriber/UserRequestSubscriber.php \Drupal\user\EventSubscriber\UserRequestSubscriber::getSubscribedEvents()
File
- core/
modules/ user/ src/ EventSubscriber/ UserRequestSubscriber.php, line 69
Class
- UserRequestSubscriber
- Updates the current user's last access time.
Namespace
Drupal\user\EventSubscriberCode
public static function getSubscribedEvents() {
// Should go before other subscribers start to write their caches. Notably
// before \Drupal\Core\EventSubscriber\KernelDestructionSubscriber to
// prevent instantiation of destructed services.
$events[KernelEvents::TERMINATE][] = [
'onKernelTerminate',
300,
];
return $events;
}