static function PathSubscriber::getSubscribedEvents

Same name in this branch
  1. 9.x drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php \Drupal\Core\EventSubscriber\PathSubscriber::getSubscribedEvents()
  2. 9.x drupal/core/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/PathSubscriber.php \Drupal\url_alter_test\PathSubscriber::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

drupal/core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php, line 124
Definition of Drupal\Core\EventSubscriber\PathSubscriber.

Class

PathSubscriber
Access subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestDecodePath',
    200,
  );
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestLanguageResolve',
    150,
  );
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestFrontPageResolve',
    101,
  );
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestPathResolve',
    100,
  );
  $events[KernelEvents::TERMINATE][] = array(
    'onKernelTerminate',
    200,
  );
  return $events;
}