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