function ForumManager::getParents
Overrides ForumManagerInterface::getParents
File
-
core/
modules/ forum/ src/ ForumManager.php, line 482
Class
- ForumManager
- Provides forum manager service.
Namespace
Drupal\forumCode
public function getParents($tid) {
@trigger_error(__NAMESPACE__ . '\\ForumManager::getParents() is deprecated in drupal:8.1.0 and is removed from drupal:9.0.0. Call loadAllParents() on taxonomy term storage directly. See https://www.drupal.org/node/3069599', E_USER_DEPRECATED);
return $this->entityTypeManager
->getStorage('taxonomy_term')
->loadAllParents($tid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.