You are here

public function EntityTreeNodeMapperInterface::loadAndAccessCheckEntitysForTreeNodes in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 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\Storage

Code

public function loadAndAccessCheckEntitysForTreeNodes($entity_type_id, array $nodes, RefinableCacheableDependencyInterface $cache = NULL);