function TermStorageInterface::getVocabularyHierarchyType
Same name in other branches
- 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::getVocabularyHierarchyType()
- 8.9.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::getVocabularyHierarchyType()
- 11.x core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::getVocabularyHierarchyType()
Returns the hierarchy type for a specific vocabulary ID.
Parameters
string $vid: Vocabulary ID to retrieve the hierarchy type for.
Return value
int The vocabulary hierarchy. Possible values:
- VocabularyInterface::HIERARCHY_DISABLED: No parents.
- VocabularyInterface::HIERARCHY_SINGLE: Single parent.
- VocabularyInterface::HIERARCHY_MULTIPLE: Multiple parents.
1 method overrides TermStorageInterface::getVocabularyHierarchyType()
- TermStorage::getVocabularyHierarchyType in core/
modules/ taxonomy/ src/ TermStorage.php
File
-
core/
modules/ taxonomy/ src/ TermStorageInterface.php, line 145
Class
- TermStorageInterface
- Defines an interface for taxonomy_term entity storage classes.
Namespace
Drupal\taxonomyCode
public function getVocabularyHierarchyType($vid);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.