public VocabularyInterface::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
File
- core/modules/taxonomy/src/VocabularyInterface.php, line 47
Class
- VocabularyInterface
- Provides an interface defining a taxonomy vocabulary entity.
Namespace
Drupal\taxonomy
Code
public function setHierarchy($hierarchy);
Please login to continue.