TermStorageInterface::loadParents

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

Please login to continue.