You are here

public static function Cookie::getSubscribedEvents in Drupal 9

Same name and namespace in other branches
  1. 10 core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

core/modules/user/src/Authentication/Provider/Cookie.php, line 150

Class

Cookie
Cookie based authentication provider.

Namespace

Drupal\user\Authentication\Provider

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::RESPONSE][] = [
    'addCheckToUrl',
    -1000,
  ];
  return $events;
}