You are here

public function TermStorageInterface::loadChildren in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::loadChildren()
  2. 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::loadChildren()

Finds all children of a term ID.

Parameters

int $tid: Term ID to retrieve children 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.

1 method overrides TermStorageInterface::loadChildren()
TermStorage::loadChildren in core/modules/taxonomy/src/TermStorage.php
Finds all children of a term ID.

File

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

Class

TermStorageInterface
Defines an interface for taxonomy_term entity storage classes.

Namespace

Drupal\taxonomy

Code

public function loadChildren($tid, $vid = NULL);