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 409
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_load($vid) {
  return Vocabulary::load($vid);
}
doc_Drupal
2016-10-29 09:46:35
Comments
Leave a Comment

Please login to continue.