1. 8.3.x core/modules/taxonomy/src/Entity/Vocabulary.php Vocabulary::hierarchy
  2. 8.0.x core/modules/taxonomy/src/Entity/Vocabulary.php Vocabulary::hierarchy
  3. 8.1.x core/modules/taxonomy/src/Entity/Vocabulary.php Vocabulary::hierarchy
  4. 8.2.x core/modules/taxonomy/src/Entity/Vocabulary.php Vocabulary::hierarchy
  5. 8.4.x core/modules/taxonomy/src/Entity/Vocabulary.php Vocabulary::hierarchy

The type of hierarchy allowed within the vocabulary.

Possible values:

  • VocabularyInterface::HIERARCHY_DISABLED: No parents.
  • VocabularyInterface::HIERARCHY_SINGLE: Single parent.
  • VocabularyInterface::HIERARCHY_MULTIPL: Multiple parents.

Type: int

File

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

Class

Vocabulary
Defines the taxonomy vocabulary entity.

Namespace

Drupal\taxonomy\Entity

Code

protected $hierarchy = VocabularyInterface::HIERARCHY_DISABLED;