function LayoutBuilderRoutes::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php \Drupal\layout_builder\Routing\LayoutBuilderRoutes::getSubscribedEvents()
  2. 10 core/modules/layout_builder/src/Routing/LayoutBuilderRoutes.php \Drupal\layout_builder\Routing\LayoutBuilderRoutes::getSubscribedEvents()
  3. 11.x 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() {
    // Run after \Drupal\field_ui\Routing\RouteSubscriber.
    $events[RoutingEvents::ALTER] = [
        'onAlterRoutes',
        -110,
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.