function ForumManagerInterface::getParents
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\forumCode
public function getParents($tid);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.