drupal load all nodes of type
\Drupal::entityTypeManager()->getStorage('node') ->loadByProperties(['type' => 'content_type'])
Source: drupal.stackexchange.com
\Drupal::entityTypeManager()->getStorage('node') ->loadByProperties(['type' => 'content_type'])