drupal 8 get taxonomy paretn code example
Example: drupal 8 get taxonomy paretn
$parents = \Drupal::service('entity_type.manager')->getStorage("taxonomy_term")->loadAllParents($tid)
$parents = \Drupal::service('entity_type.manager')->getStorage("taxonomy_term")->loadAllParents($tid)