function taxonomy_vocabulary_load in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_load()
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 399 - Enables the organization of content into categories.
Code
function taxonomy_vocabulary_load($vid) {
return Vocabulary::load($vid);
}