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 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
- 8 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
Constructs a RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- src/
Routing/ RouteSubscriber.php, line 38
Class
- RouteSubscriber
- Dynamic RNG routes.
Namespace
Drupal\rng\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_manager, EventManagerInterface $event_manager) {
$this->entityManager = $entity_manager;
$this->eventManager = $event_manager;
}