taxonomy_vocabulary_load($vid)
Return the taxonomy vocabulary entity matching a vocabulary ID.
Parameters
int $vid: The vocabulary's ID.
Return value
\Drupal\taxonomy\Entity\Vocabulary|null The taxonomy vocabulary entity, if exists, NULL otherwise. Results are statically cached.
Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Vocabulary::load().
File
core/modules/taxonomy/taxonomy.module, line 409 Enables the organization of content into categories.