You are here

static function PathSubscriber::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php \Drupal\Core\EventSubscriber\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

core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php, line 78
Contains \Drupal\Core\EventSubscriber\PathSubscriber.

Class

PathSubscriber
Provides a path subscriber that converts path aliases.

Namespace

Drupal\Core\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::CONTROLLER][] = array(
    'onKernelController',
    200,
  );
  $events[KernelEvents::TERMINATE][] = array(
    'onKernelTerminate',
    200,
  );
  return $events;
}