8.2.x VocabularyInterface.php public VocabularyInterface::setHierarchy($hierarchy)
8.0.x VocabularyInterface.php public VocabularyInterface::setHierarchy($hierarchy)
8.1.x VocabularyInterface.php public VocabularyInterface::setHierarchy($hierarchy)
8.3.x VocabularyInterface.php public VocabularyInterface::setHierarchy($hierarchy)

Sets the vocabulary hierarchy.

Parameters

int $hierarchy: The hierarchy type of vocabulary. Possible values:

Return value

$this

1 method overrides VocabularyInterface::setHierarchy()
Vocabulary::setHierarchy in core/modules/taxonomy/src/Entity/Vocabulary.php
Sets the vocabulary hierarchy.

File

core/modules/taxonomy/src/VocabularyInterface.php, line 47

Class

VocabularyInterface
Provides an interface defining a taxonomy vocabulary entity.

Namespace

Drupal\taxonomy

Code

public function setHierarchy($hierarchy);