VocabularyInterface

Provides an interface defining a taxonomy vocabulary entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\taxonomy\VocabularyInterface File core/modules/taxonomy/src/VocabularyInterface.php, line 10 Namespace Drupal\taxonomy Members Name Modifiers Type Description AccessibleInterface::access public function Checks data

VocabularyInterface::getDescription

public VocabularyInterface::getDescription() Returns the vocabulary description. Return value string The vocabulary description. File core/modules/taxonomy/src/VocabularyInterface.php, line 55 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code public function getDescription();

VocabularyInterface::getHierarchy

public VocabularyInterface::getHierarchy() Returns the vocabulary hierarchy. Return value int The vocabulary hierarchy. File core/modules/taxonomy/src/VocabularyInterface.php, line 33 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code public function getHierarchy();

VocabularyInterface::HIERARCHY_DISABLED

Denotes that no term in the vocabulary has a parent. File core/modules/taxonomy/src/VocabularyInterface.php, line 15 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code const HIERARCHY_DISABLED = 0;

VocabularyInterface::HIERARCHY_MULTIPLE

Denotes that one or more terms in the vocabulary have multiple parents. File core/modules/taxonomy/src/VocabularyInterface.php, line 25 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code const HIERARCHY_MULTIPLE = 2;

VocabularyInterface::HIERARCHY_SINGLE

Denotes that one or more terms in the vocabulary has a single parent. File core/modules/taxonomy/src/VocabularyInterface.php, line 20 Class VocabularyInterface Provides an interface defining a taxonomy vocabulary entity. Namespace Drupal\taxonomy Code const HIERARCHY_SINGLE = 1;

VocabularyInterface::setHierarchy

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 vocabula

VocabularyListBuilder

Defines a class to build a listing of taxonomy vocabulary entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\Core\Config\Entity\DraggableListBuilder implements FormInterfaceclass \Drupal\taxonomy\VocabularyListBuilder See also \Drupal\taxonomy\En

VocabularyListBuilder::$entitiesKey

The key to use for the form element containing the entities. Type: string Overrides DraggableListBuilder::$entitiesKey File core/modules/taxonomy/src/VocabularyListBuilder.php, line 20 Class VocabularyListBuilder Defines a class to build a listing of taxonomy vocabulary entities. Namespace Drupal\taxonomy Code protected $entitiesKey = 'vocabularies';

VocabularyListBuilder::buildForm

public VocabularyListBuilder::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides DraggableListBuilder::buildForm File core/modules/taxonomy/src/VocabularyListBuilder.php, line 88 Class VocabularyListBuilder Defines a class to build a listing of taxonomy voc