You are here

public static function RouteSubscriber::getSubscribedEvents in Layout Builder Browser 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 27

Class

RouteSubscriber
Listens to the dynamic route events.

Namespace

Drupal\layout_builder_browser\Routing

Code

public static function getSubscribedEvents() {

  // Ensure we alter the controller after other modules, see
  // https://www.drupal.org/node/3129158.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -110,
  ];
  return $events;
}