📜  taxonomy_get_parents drupal 8 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:59.600000             🧑  作者: Mango

代码示例1
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');

$parents = $storage ->loadParents($term->id());