You are here

public function MongodbTermStorage::loadParents in MongoDB 8

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.

Overrides TermStorageInterface::loadParents

File

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

Class

MongodbTermStorage

Namespace

Drupal\mongodb_taxonomy

Code

public function loadParents($tid) {
  return [];
}