public function TreeBuilderInterface::getNodeId 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::getNodeId()
Get the ID of a tree node.
Parameters
$entity: The entity for the tree node.
Return value
string|int|null The id of the tree node for the entity.
2 methods override TreeBuilderInterface::getNodeId()
- EntityTreeBuilder::getNodeId in src/
Tree/ EntityTreeBuilder.php - Get the ID of a tree node.
- TaxonomyTreeBuilder::getNodeId in src/
Tree/ TaxonomyTreeBuilder.php - Get the ID of a tree node.
File
- src/
Tree/ TreeBuilderInterface.php, line 49
Class
- TreeBuilderInterface
- Provides an interface for a tree builder.
Namespace
Drupal\entity_reference_tree\TreeCode
public function getNodeId($entity);