public function VocabularyInterface::getHierarchy in Drupal 8
Returns the vocabulary hierarchy.
Return value
int The vocabulary hierarchy.
Deprecated
in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\TermStorage::getVocabularyHierarchyType() instead.
1 method overrides VocabularyInterface::getHierarchy()
- Vocabulary::getHierarchy in core/
modules/ taxonomy/ src/ Entity/ Vocabulary.php - Returns the vocabulary hierarchy.
File
- core/
modules/ taxonomy/ src/ VocabularyInterface.php, line 36
Class
- VocabularyInterface
- Provides an interface defining a taxonomy vocabulary entity.
Namespace
Drupal\taxonomyCode
public function getHierarchy();