public function VocabularyInterface::setHierarchy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/src/VocabularyInterface.php \Drupal\taxonomy\VocabularyInterface::setHierarchy()
Sets the vocabulary hierarchy.
Parameters
integer $hierarchy: The hierarchy type of vocabulary. Possible values:
- TAXONOMY_HIERARCHY_DISABLED: No parents.
- TAXONOMY_HIERARCHY_SINGLE: Single parent.
- TAXONOMY_HIERARCHY_MULTIPLE: Multiple parents.
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 37 - Contains \Drupal\taxonomy\VocabularyInterface.
Class
- VocabularyInterface
- Provides an interface defining a taxonomy vocabulary entity.
Namespace
Drupal\taxonomyCode
public function setHierarchy($hierarchy);