public function TreeBuilderInterface::createTreeNode 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::createTreeNode()
Create a tree node.
Parameters
$entity: The entity for the tree node.
array $selected: A anrray for all selected nodes.
Return value
array The tree node for the entity.
2 methods override TreeBuilderInterface::createTreeNode()
- EntityTreeBuilder::createTreeNode in src/
Tree/ EntityTreeBuilder.php - Create a tree node.
- TaxonomyTreeBuilder::createTreeNode in src/
Tree/ TaxonomyTreeBuilder.php - Create a tree node.
File
- src/
Tree/ TreeBuilderInterface.php, line 38
Class
- TreeBuilderInterface
- Provides an interface for a tree builder.
Namespace
Drupal\entity_reference_tree\TreeCode
public function createTreeNode($entity, array $selected = []);