taxonomy get parent drupal 8 code example
Example: taxonomy_get_parents drupal 8
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');
$parents = $storage ->loadParents($term->id());
$storage = \Drupal::service('entity_type.manager')->getStorage('taxonomy_term');
$parents = $storage ->loadParents($term->id());