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\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityDisplayRepositoryInterface $entityDisplayRepository) {
$this->entityTypeManager = $entity_type_manager;
$this->entityDisplayRepository = $entityDisplayRepository;
}