You are here

public static function RouteSubscriber::getSubscribedEvents in Page Manager 8.4

Same name and namespace in other branches
  1. 8 tests/modules/page_manager_routing_test/src/Routing/RouteSubscriber.php \Drupal\page_manager_routing_test\Routing\RouteSubscriber::getSubscribedEvents()

File

tests/modules/page_manager_routing_test/src/Routing/RouteSubscriber.php, line 46

Class

RouteSubscriber
Route subscriber for Page Manager Routing Test.

Namespace

Drupal\page_manager_routing_test\Routing

Code

public static function getSubscribedEvents() {

  // Run before PageManagerRoutes.
  $events[RoutingEvents::ALTER][] = [
    'beforePageManagerRoutes',
    -155,
  ];

  // Run after PageManagerRoutes.
  $events[RoutingEvents::ALTER][] = [
    'afterPageManagerRoutes',
    -165,
  ];
  return $events;
}