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

Breadcrumb

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

function MenuLinksetRoutes::__construct

EventSubscriber constructor.

Parameters

string[] $authenticationProviders: An array of authentication providers, keyed by ID.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

\Drupal\Core\Routing\RouteBuilderInterface $routeBuilder: The route builder.

File

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

Class

MenuLinksetRoutes
Dynamically defines routes for menu linkset endpoints.

Namespace

Drupal\system\Routing

Code

public function __construct(array $authenticationProviders, ConfigFactoryInterface $configFactory, RouteBuilderInterface $routeBuilder) {
    $this->providerIds = array_keys($authenticationProviders);
}

API Navigation

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