public function RouteSubscriber::__construct in Views Advanced Routing 8
Same name and namespace in other branches
- 2.x src/Routing/RouteSubscriber.php \Drupal\views_advanced_routing\Routing\RouteSubscriber::__construct()
Constructs a RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
File
- src/
Routing/ RouteSubscriber.php, line 35 - Contains \Drupal\views_advanced_routing\Routing\RouteSubscriber.
Class
- RouteSubscriber
- Customizes Views routes.
Namespace
Drupal\views_advanced_routing\RoutingCode
public function __construct(EntityManagerInterface $entity_manager) {
$this->viewStorage = $entity_manager
->getStorage('view');
}