$terms = Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties([ 'vid' => 'vocabulary__machine_name' ]);