public function EntityTreeNodeMapperInterface::loadAndAccessCheckEntitysForTreeNodes in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x src/Storage/EntityTreeNodeMapperInterface.php \Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface::loadAndAccessCheckEntitysForTreeNodes()
Loads Drupal entities for given tree nodes and checks access.
Parameters
string $entity_type_id: Entity Type ID.
\PNX\NestedSet\Node[] $nodes: Tree node to load entity for.
\Drupal\Core\Cache\RefinableCacheableDependencyInterface $cache: (optional) Cache metadata.
Return value
\SplObjectStorage Map of entities keyed by node.
1 method overrides EntityTreeNodeMapperInterface::loadAndAccessCheckEntitysForTreeNodes()
- EntityTreeNodeMapper::loadAndAccessCheckEntitysForTreeNodes in src/
Storage/ EntityTreeNodeMapper.php - Loads Drupal entities for given tree nodes and checks access.
File
- src/
Storage/ EntityTreeNodeMapperInterface.php, line 40
Class
- EntityTreeNodeMapperInterface
- Takes an array of tree nodes & returns matching entities, keyed by tree node.
Namespace
Drupal\entity_hierarchy\StorageCode
public function loadAndAccessCheckEntitysForTreeNodes($entity_type_id, array $nodes, RefinableCacheableDependencyInterface $cache = NULL);