public function EntityTreeNodeMapper::__construct in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 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\StorageCode
public function __construct(EntityTypeManagerInterface $entityTypeManager) {
$this->entityTypeManager = $entityTypeManager;
}