public ForumManager::getParents($tid)
Fetches the parent forums for a given forum.
Parameters
int $tid: Term ID.
Return value
array Array of parent terms.
Overrides ForumManagerInterface::getParents
Deprecated
Scheduled to be removed in 9.0.x, see https://www.drupal.org/node/2371593.
File
- core/modules/forum/src/ForumManager.php, line 460
Class
- ForumManager
- Provides forum manager service.
Namespace
Drupal\forum
Code
public function getParents($tid) { return $this->entityManager->getStorage('taxonomy_term')->loadAllParents($tid); }
Please login to continue.