Query and load entity by Entity Type Manager Currently I am firstly "searching" for an taxonomy term entity with the Entity Query in Drupal 8:

$termIds = \Drupal::entityQuery('taxonomy_term')
  -&gt;condition('field_code', $code)
  -&gt;condition('vid', 'computer')
  -&gt;execute();


And then I am loading the taxonomy term entity: 

      $termId = current($termIds);
      $term = \Drupal::entityTypeManager()
        -&gt;getStorage('taxonomy_term')
        -&gt;load($termId);


Is there a way to do it in 1 step, instead of these two?
You can do this in one step by using loadByProperties():

$term = current(\Drupal::entityTypeManager()-&gt;getStorage('taxonomy_term')
  -&gt;loadByProperties(['field_code' =&gt; $code, 'vid' =&gt; 'computer'])
);


This method is a shortcut for basic entity queries like you have here and also includes the step for loading the entities.