function Cookie::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::getSubscribedEvents()
  2. 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 153

Class

Cookie
Cookie based authentication provider.

Namespace

Drupal\user\Authentication\Provider

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.