You are here

public function TermStorageInterface::getVocabularyHierarchyType in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/TermStorageInterface.php \Drupal\taxonomy\TermStorageInterface::getVocabularyHierarchyType()
  2. 10 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:

1 method overrides TermStorageInterface::getVocabularyHierarchyType()
TermStorage::getVocabularyHierarchyType in core/modules/taxonomy/src/TermStorage.php
Returns the hierarchy type for a specific vocabulary ID.

File

core/modules/taxonomy/src/TermStorageInterface.php, line 142

Class

TermStorageInterface
Defines an interface for taxonomy_term entity storage classes.

Namespace

Drupal\taxonomy

Code

public function getVocabularyHierarchyType($vid);