Return the taxonomy vocabulary entity matching a vocabulary machine name.
$name: The vocabulary's machine name.
Drupal\taxonomy\Plugin\Core\Entity\Vocabulary|false The taxonomy vocabulary entity, if exists, FALSE otherwise. Results are statically cached.
function taxonomy_vocabulary_machine_name_load($name) {
$result = entity_load_multiple_by_properties('taxonomy_vocabulary', array(
'machine_name' => $name,
));
return reset($result);
}