public function TreeBuilderInterface::loadTree in Entity Reference Tree Widget 8
Same name and namespace in other branches
- 2.x src/Tree/TreeBuilderInterface.php \Drupal\entity_reference_tree\Tree\TreeBuilderInterface::loadTree()
Load all entities from an entity bundle for the tree.
Parameters
string $entityType: The type of the entity.
string $bundleID: The bundle ID.
Return value
array All entities in the entity bundle.
2 methods override TreeBuilderInterface::loadTree()
- EntityTreeBuilder::loadTree in src/
Tree/ EntityTreeBuilder.php - Load all entities from an entity bundle for the tree.
- TaxonomyTreeBuilder::loadTree in src/
Tree/ TaxonomyTreeBuilder.php - Load all entities from an entity bundle for the tree.
File
- src/
Tree/ TreeBuilderInterface.php, line 24
Class
- TreeBuilderInterface
- Provides an interface for a tree builder.
Namespace
Drupal\entity_reference_tree\TreeCode
public function loadTree(string $entityType, string $bundleID, string $langCode = NULL, int $parent = 0, int $max_depth = NULL);