You are here

public function ForumManagerInterface::getParents in Drupal 8

Fetches the parent forums for a given forum.

Parameters

int $tid: Term ID.

Return value

array Array of parent terms.

Deprecated

in drupal:8.1.0 and is removed from drupal:9.0.0. Call loadAllParents() on taxonomy term storage directly.

See also

https://www.drupal.org/node/3069599

1 method overrides ForumManagerInterface::getParents()
ForumManager::getParents in core/modules/forum/src/ForumManager.php
Fetches the parent forums for a given forum.

File

core/modules/forum/src/ForumManagerInterface.php, line 68

Class

ForumManagerInterface
Provides forum manager interface.

Namespace

Drupal\forum

Code

public function getParents($tid);