You are here

public function RouteSubscriber::__construct in View Modes Display 8.2

Constructs a RouteSubscriber object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/Routing/RouteSubscriber.php, line 39

Class

RouteSubscriber
Subscriber for View Mode Display routes.

Namespace

Drupal\view_modes_display\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityDisplayRepositoryInterface $entityDisplayRepository) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityDisplayRepository = $entityDisplayRepository;
}