public function VocabularyInterface::setHierarchy in Drupal 8
Sets the vocabulary hierarchy.
Parameters
int $hierarchy: The hierarchy type of vocabulary. Possible values:
- VocabularyInterface::HIERARCHY_DISABLED: No parents.
- VocabularyInterface::HIERARCHY_SINGLE: Single parent.
- VocabularyInterface::HIERARCHY_MULTIPLE: Multiple parents.
Return value
$this
Deprecated
in drupal:8.7.0 and is removed from drupal:9.0.0. Reset the cache of the taxonomy_term storage handler instead.
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 53
Class
- VocabularyInterface
- Provides an interface defining a taxonomy vocabulary entity.
Namespace
Drupal\taxonomyCode
public function setHierarchy($hierarchy);