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