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

Breadcrumb

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

function MenuLinksetRoutes::onConfigSave

File

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

Class

MenuLinksetRoutes
Dynamically defines routes for menu linkset endpoints.

Namespace

Drupal\system\Routing

Code

public function onConfigSave(ConfigCrudEvent $event) {
    $saved_config = $event->getConfig();
    if ($saved_config->getName() === 'system.feature_flags' && $event->isChanged('linkset_endpoint')) {
        $this->routeBuilder
            ->setRebuildNeeded();
    }
}

API Navigation

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