public Vocabulary::setHierarchy($hierarchy)
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
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; }
Please login to continue.