Question : taxonomy_get_parents drupal 8
Answered by : liam-roels
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');
$parents = $storage ->loadParents($term->id());
Source : | Last Update : Tue, 19 Jan 21
Answered by : liam-roels
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');
$parents = $storage ->loadParents($term->id());
Source : | Last Update : Tue, 19 Jan 21