TermStorageInterface::loadAllParents

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);
doc_Drupal
2016-10-29 09:47:25
Comments
Leave a Comment

Please login to continue.