By chx on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Description:
Use entity_load_multiple('taxonomy_vocabulary') instead of taxonomy_get_vocabularies()
Drupal 7:
$vocabularies = taxonomy_get_vocabularies();
Drupal 8:
use Drupal\taxonomy\Entity\Vocabulary;
$vocabularies = Vocabulary::loadMultiple();
This became possible because calling entity_load_multiple($entity_type) without any arguments (or NULL) now loads all $entity_type type entities. Previously, you needed to call entity_load($entity_type, FALSE).
Impacts:
Module developers