You are here

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

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

Constructs a new EntityTreeNodeMapper object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

File

src/Storage/EntityTreeNodeMapper.php, line 27

Class

EntityTreeNodeMapper
Takes an array of tree nodes & returns matching entities, keyed by tree node.

Namespace

Drupal\entity_hierarchy\Storage

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager) {
  $this->entityTypeManager = $entityTypeManager;
}