You are here

public function EntityHierarchySelectionDeriver::__construct in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/EntityHierarchySelectionDeriver.php \Drupal\entity_hierarchy\Plugin\Derivative\EntityHierarchySelectionDeriver::__construct()

Creates an EntityHierarchySelectionDeriverobject.

Parameters

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity field manager.

File

src/Plugin/Derivative/EntityHierarchySelectionDeriver.php, line 28

Class

EntityHierarchySelectionDeriver
Derives an entity reference selection handler for each entity type.

Namespace

Drupal\entity_hierarchy\Plugin\Derivative

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager) {
  $this->entityFieldManager = $entityFieldManager;
}