Drupal 8 分类常用

// 获取所有的Vocabulary
$vocabularies = \Drupal\taxonomy\Entity\Vocabulary::loadMultiple();
dpm($vocabularies);

get term

$term = \Drupal\taxonomy\Entity\Term::load(1);
$title = $term->getName();