TermStorageInterface::loadChildren

public TermStorageInterface::loadChildren($tid, $vid = NULL)

Finds all children of a term ID.

Parameters

int $tid: Term ID to retrieve parents for.

string $vid: An optional vocabulary ID to restrict the child search.

Return value

\Drupal\taxonomy\TermInterface[] An array of term objects that are the children of the term $tid.

File

core/modules/taxonomy/src/TermStorageInterface.php, line 62

Class

TermStorageInterface
Defines an interface for taxonomy_term entity storage classes.

Namespace

Drupal\taxonomy

Code

public function loadChildren($tid, $vid = NULL);
doc_Drupal
2016-10-29 09:47:25
Comments
Leave a Comment

Please login to continue.