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/modules/system/tests/modules/url_alter_test/lib/Drupal/url_alter_test/PathSubscriber.php, line 55
Contains Drupal\url_alter_test\PathSubscriber.

Class

PathSubscriber
Path subscriber for url_alter_test.

Namespace

Drupal\url_alter_test

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestPathResolve',
    100,
  );
  return $events;
}