Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PathAliasSubscriber.php

function PathAliasSubscriber::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/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php, line 72

Class

PathAliasSubscriber
Provides a path subscriber that converts path aliases.

Namespace

Drupal\path_alias\EventSubscriber

Code

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