public function NodeAdminRouteSubscriber::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/EventSubscriber/NodeAdminRouteSubscriber.php \Drupal\node\EventSubscriber\NodeAdminRouteSubscriber::__construct()
Constructs a new NodeAdminRouteSubscriber.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Routing\RouteBuilderInterface $router_builder: The router builder service.
File
- core/
modules/ node/ src/ EventSubscriber/ NodeAdminRouteSubscriber.php, line 39
Class
- NodeAdminRouteSubscriber
- Sets the _admin_route for specific node-related routes.
Namespace
Drupal\node\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory, RouteBuilderInterface $router_builder) {
$this->configFactory = $config_factory;
$this->routerBuilder = $router_builder;
}