function TermStorageInterface::loadAllParents
Same name in other branches
- 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::loadAllParents()
- 8.9.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::loadAllParents()
- 11.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::loadAllParents()
Finds all ancestors of a given term ID.
Parameters
int $tid: Term ID to retrieve ancestors for.
Return value
\Drupal\taxonomy\TermInterface[] An array of term objects which are the ancestors of the term $tid.
1 method overrides TermStorageInterface::loadAllParents()
- TermStorage::loadAllParents in core/
modules/ taxonomy/ src/ TermStorage.php - Finds all ancestors of a given term ID.
File
-
core/
modules/ taxonomy/ src/ TermStorageInterface.php, line 59
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomyCode
public function loadAllParents($tid);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.