function taxonomy_vocabulary_load_multiple

Same name in other branches
  1. 7.x modules/taxonomy/taxonomy.module \taxonomy_vocabulary_load_multiple()

Loads multiple taxonomy vocabularies based on certain conditions.

This function should be used whenever you need to load more than one vocabulary from the database. Terms are loaded into memory and will not require database access if loaded again during the same page request.

Parameters

array $vids: (optional) An array of entity IDs. If omitted, all entities are loaded.

Return value

array An array of vocabulary objects, indexed by vid.

Deprecated

in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\taxonomy\Entity\Vocabulary::loadMultiple().

See also

https://www.drupal.org/node/2266845

1 call to taxonomy_vocabulary_load_multiple()
TaxonomyLegacyTest::testEntityLegacyCode in core/modules/taxonomy/tests/src/Kernel/TaxonomyLegacyTest.php
@expectedDeprecation taxonomy_term_load_multiple() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\taxonomy\Entity\Term::loadMultiple(). See https://www.drupal.org/node/2266845 @expectedDeprecation…

File

core/modules/taxonomy/taxonomy.module, line 416

Code

function taxonomy_vocabulary_load_multiple(array $vids = NULL) {
    @trigger_error('taxonomy_vocabulary_load_multiple() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\taxonomy\\Entity\\Vocabulary::loadMultiple(). See https://www.drupal.org/node/2266845', E_USER_DEPRECATED);
    return Vocabulary::loadMultiple($vids);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.