Drupal 9 Obtener objetos de término de taxonomía por vocabulario Nombre de la máquina Vid
try {
$terms = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['vid' => 'my_vocablary_machine_name']);
} catch (Exception $e) {
throw new HttpException(400,'Error upon selection of terms/session_tracks. ' . $e->getMessage());
}
cnmdrupal