You are here

public static function LayoutBuilderRoutes::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php \Drupal\layout_builder\Routing\LayoutBuilderRoutes::getSubscribedEvents()
  2. 9 core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php \Drupal\layout_builder\Routing\LayoutBuilderRoutes::getSubscribedEvents()

File

core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php, line 51

Class

LayoutBuilderRoutes
Provides routes for the Layout Builder UI.

Namespace

Drupal\layout_builder\Routing

Code

public static function getSubscribedEvents() : array {

  // Run after \Drupal\field_ui\Routing\RouteSubscriber.
  $events[RoutingEvents::ALTER] = [
    'onAlterRoutes',
    -110,
  ];
  return $events;
}