You are here

public static function RouteSubscriber::getSubscribedEvents in Layout Builder Symmetric Translations 8

Overrides RouteSubscriberBase::getSubscribedEvents

File

src/Routing/RouteSubscriber.php, line 30

Class

RouteSubscriber
Listens to the dynamic route events.

Namespace

Drupal\layout_builder_st\Routing

Code

public static function getSubscribedEvents() {

  // Come before \Drupal\layout_builder\Routing\LayoutBuilderRoutes. So that
  // only routes provide by layout_builder.routes.yml are altered.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    100,
  ];
  return $events;
}