Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinksetRoutes.php

function MenuLinksetRoutes::getSubscribedEvents

Overrides RouteSubscriberBase::getSubscribedEvents

File

core/modules/system/src/Routing/MenuLinksetRoutes.php, line 70

Class

MenuLinksetRoutes
Dynamically defines routes for menu linkset endpoints.

Namespace

Drupal\system\Routing

Code

public static function getSubscribedEvents() : array {
    $events = parent::getSubscribedEvents();
    // Run after the route alter event subscriber.
    $events[ConfigEvents::SAVE][] = [
        'onConfigSave',
        0,
    ];
    return $events;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal