Get taxonomy vocabulary list - Drupal 8 | Drupal 8

Get taxonomy vocabulary list - Drupal 8

Submitted by editor on Tue, 11/17/2015 - 18:36
Question

How to get the taxonomy vocabulary list of Drupal 8.
(AsĀ  taxonomy_get_vocabularies() in drupal 7)

In drupal 8, this retrun taxonomy vocabularies as an array.

$vocabularies = \Drupal\taxonomy\Entity\Vocabulary::loadMultiple();

Add new comment