function VocabularyInterface::setHierarchy

Sets the vocabulary hierarchy.

Parameters

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

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\taxonomy

Code

public function setHierarchy($hierarchy);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.