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.

See also

taxonomy_vocabulary_machine_name_load()

19 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.
ForumTest::editForumTaxonomy in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Edits the forum taxonomy.
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.

... See full list

1 string reference to 'taxonomy_vocabulary_load'
ForumTest::editForumTaxonomy in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Edits the forum taxonomy.

File

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

Code

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