function taxonomy_vocabulary_load

Return the taxonomy vocabulary entity matching a vocabulary ID.

Parameters

int $vid: The vocabulary's ID.

Return value

Drupal\taxonomy\Plugin\Core\Entity\Vocabulary|false The taxonomy vocabulary entity, if exists, FALSE otherwise. Results are statically cached.

18 calls to taxonomy_vocabulary_load()
EntityCrudHookTest::testTaxonomyVocabularyHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy vocabularies.
forum_enable in drupal/core/modules/forum/forum.install
Implements hook_enable().
forum_node_view in drupal/core/modules/forum/forum.module
Implements hook_node_view().
forum_overview in drupal/core/modules/forum/forum.admin.inc
Form constructor for the forum overview form.
hook_mail in drupal/core/modules/system/system.api.php
Prepare a message based on parameters; called from drupal_mail().

... See full list

1 string reference to 'taxonomy_vocabulary_load'
VocabularyFormController::form in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyFormController.php
Overrides Drupal\Core\Entity\EntityFormController::form().

File

drupal/core/modules/taxonomy/taxonomy.module, line 841
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_load($vid) {
  return entity_load('taxonomy_vocabulary', $vid);
}