function VocabularyInterface::getHierarchy

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\taxonomy

Code

public function getHierarchy();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.