interface EntityTreeNodeMapperInterface in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Storage/EntityTreeNodeMapperInterface.php \Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface
Takes an array of tree nodes & returns matching entities, keyed by tree node.
Hierarchy
- interface \Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface
Expanded class hierarchy of EntityTreeNodeMapperInterface
All classes that implement EntityTreeNodeMapperInterface
7 files declare their use of EntityTreeNodeMapperInterface
- ChildEntityWarningBuilder.php in src/
Information/ ChildEntityWarningBuilder.php - EntityHierarchy.php in src/
Plugin/ EntityReferenceSelection/ EntityHierarchy.php - EntityHierarchy.php in modules/
entity_hierarchy_workbench_access/ src/ Plugin/ AccessControlHierarchy/ EntityHierarchy.php - HierarchyBasedBreadcrumbBuilder.php in modules/
entity_hierarchy_breadcrumb/ src/ HierarchyBasedBreadcrumbBuilder.php - HierarchyChildrenForm.php in src/
Form/ HierarchyChildrenForm.php
File
- src/
Storage/ EntityTreeNodeMapperInterface.php, line 10
Namespace
Drupal\entity_hierarchy\StorageView source
interface EntityTreeNodeMapperInterface {
/**
* Loads Drupal entities for given tree nodes.
*
* @param string $entity_type_id
* Entity Type ID.
* @param \PNX\NestedSet\Node[] $nodes
* Tree node to load entity for.
* @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface $cache
* (optional) Cache metadata.
*
* @return \SplObjectStorage
* Map of entities keyed by node.
*/
public function loadEntitiesForTreeNodesWithoutAccessChecks($entity_type_id, array $nodes, RefinableCacheableDependencyInterface $cache = NULL);
/**
* Loads Drupal entities for given tree nodes and checks access.
*
* @param string $entity_type_id
* Entity Type ID.
* @param \PNX\NestedSet\Node[] $nodes
* Tree node to load entity for.
* @param \Drupal\Core\Cache\RefinableCacheableDependencyInterface $cache
* (optional) Cache metadata.
*
* @return \SplObjectStorage
* Map of entities keyed by node.
*/
public function loadAndAccessCheckEntitysForTreeNodes($entity_type_id, array $nodes, RefinableCacheableDependencyInterface $cache = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTreeNodeMapperInterface:: |
public | function | Loads Drupal entities for given tree nodes and checks access. | 1 |
EntityTreeNodeMapperInterface:: |
public | function | Loads Drupal entities for given tree nodes. | 1 |