📅  最后修改于: 2022-03-11 14:53:59.600000             🧑  作者: Mango
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');
$parents = $storage ->loadParents($term->id());