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