public function EntityTreeNodeMapper::__construct in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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;
}