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);
Please login to continue.