public function RouteSubscriber::__construct in RNG - Events and Registrations 3.x
Same name in this branch
- 3.x src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
- 3.x rng_debug/src/Routing/RouteSubscriber.php \Drupal\rng_debug\Routing\RouteSubscriber::__construct()
Same name and namespace in other branches
- 8.2 rng_debug/src/Routing/RouteSubscriber.php \Drupal\rng_debug\Routing\RouteSubscriber::__construct()
- 8 rng_debug/src/Routing/RouteSubscriber.php \Drupal\rng_debug\Routing\RouteSubscriber::__construct()
Constructs a RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- rng_debug/
src/ Routing/ RouteSubscriber.php, line 38
Class
- RouteSubscriber
- Dynamic routes.
Namespace
Drupal\rng_debug\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EventManagerInterface $event_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->eventManager = $event_manager;
}