public TermStorageInterface::loadAllParents($tid)
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.
File
- core/modules/taxonomy/src/TermStorageInterface.php, line 49
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomy
Code
public function loadAllParents($tid);
Please login to continue.