Currently I am firstly "searching" for an taxonomy term entity with the Entity Query in Drupal 8:
$termIds = \Drupal::entityQuery('taxonomy_term')
->condition('field_code', $code)
->condition('vid', 'computer')
->execute();
And then I am loading the taxonomy term entity:
$termId = current($termIds);
$term = \Drupal::entityTypeManager()
->getStorage('taxonomy_term')
->load($termId);
Is there a way to do it in 1 step, instead of these two?