Load taxonomy tree based on vocabulary

\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadTree($vid);