function RouteSubscriber::__construct
Same name in other branches
- 4.x src/Routing/RouteSubscriber.php \Drupal\devel\Routing\RouteSubscriber::__construct()
Constructs a new RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.
\Drupal\Core\Routing\RouteProviderInterface $router_provider: The router service.
File
-
src/
Routing/ RouteSubscriber.php, line 40
Class
- RouteSubscriber
- Subscriber for Devel routes.
Namespace
Drupal\devel\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_manager, RouteProviderInterface $router_provider) {
$this->entityTypeManager = $entity_manager;
$this->routeProvider = $router_provider;
}