You are here

public function EntityHierarchyRouteProvider::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x src/Routing/EntityHierarchyRouteProvider.php \Drupal\entity_hierarchy\Routing\EntityHierarchyRouteProvider::__construct()

Constructs a new DefaultHtmlRouteProvider.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

File

src/Routing/EntityHierarchyRouteProvider.php, line 43

Class

EntityHierarchyRouteProvider
Defines a class for providing route definitions for hierarchy entities.

Namespace

Drupal\entity_hierarchy\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
}