function MenuLinksetRoutes::__construct
Same name in other branches
- 11.x core/modules/system/src/Routing/MenuLinksetRoutes.php \Drupal\system\Routing\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\RoutingCode
public function __construct(array $authenticationProviders, ConfigFactoryInterface $configFactory, RouteBuilderInterface $routeBuilder) {
$this->providerIds = array_keys($authenticationProviders);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.