public function RouteSubscriber::__construct in RNG - Events and Registrations 8.2
Same name in this branch
- 8.2 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
- 8.2 rng_debug/src/Routing/RouteSubscriber.php \Drupal\rng_debug\Routing\RouteSubscriber::__construct()
Same name and namespace in other branches
- 8 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
- 3.x src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
Constructs a RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $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(EntityManagerInterface $entity_manager, EventManagerInterface $event_manager) {
$this->entityManager = $entity_manager;
$this->eventManager = $event_manager;
}