You are here

public function RouteSubscriber::__construct in Views Advanced Routing 2.x

Same name and namespace in other branches
  1. 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\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->viewStorage = $entity_type_manager
    ->getStorage('view');
}