Vocabulary::setHierarchy

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;
}
doc_Drupal
2016-10-29 09:56:16
Comments
Leave a Comment

Please login to continue.