function taxonomy_vocabulary_load
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 399
- Enables the organization of content into categories.
Code
function taxonomy_vocabulary_load($vid) { return Vocabulary::load($vid); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.module/function/taxonomy_vocabulary_load/8.1.x