You are here

public function MongodbTermStorage::loadTree in MongoDB 8

Finds all terms in a given vocabulary ID.

Parameters

string $vid: Vocabulary ID to retrieve terms for.

int $parent: The term ID under which to generate the tree. If 0, generate the tree for the entire vocabulary.

int $max_depth: The number of levels of the tree to return. Leave NULL to return all levels.

bool $load_entities: If TRUE, a full entity load will occur on the term objects. Otherwise they are partial objects queried directly from the {taxonomy_term_data} table to save execution time and memory consumption when listing large numbers of terms. Defaults to FALSE.

Return value

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

Overrides TermStorageInterface::loadTree

File

mongodb_taxonomy/src/MongodbTermStorage.php, line 98
Contains \Drupal\mongodb_taxonomy\MongodbTermStorage.

Class

MongodbTermStorage

Namespace

Drupal\mongodb_taxonomy

Code

public function loadTree($vid, $parent = 0, $max_depth = NULL, $load_entities = FALSE) {
  return [];
}