function Vocabulary::getHierarchy
Overrides VocabularyInterface::getHierarchy
File
-
core/
modules/ taxonomy/ src/ Entity/ Vocabulary.php, line 93
Class
- Vocabulary
- Defines the taxonomy vocabulary entity.
Namespace
Drupal\taxonomy\EntityCode
public function getHierarchy() {
@trigger_error('\\Drupal\\taxonomy\\VocabularyInterface::getHierarchy() is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.x. Use \\Drupal\\taxonomy\\TermStorage::getVocabularyHierarchyType() instead.', E_USER_DEPRECATED);
return $this->entityTypeManager()
->getStorage('taxonomy_term')
->getVocabularyHierarchyType($this->id());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.