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

Sets the vocabulary hierarchy.

Parameters

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

Return value

$this

Overrides VocabularyInterface::setHierarchy

File

core/modules/taxonomy/src/Entity/Vocabulary.php, line 101

Class

Vocabulary
Defines the taxonomy vocabulary entity.

Namespace

Drupal\taxonomy\Entity

Code

public function setHierarchy($hierarchy) {
  $this->hierarchy = $hierarchy;
  return $this;
}