Question : drupal load all nodes of type
Answered by : liam-roels
\Drupal::entityTypeManager()->getStorage('node') ->loadByProperties(['type' => 'content_type'])
Source : https://drupal.stackexchange.com/questions/213689/get-all-nodes-of-given-type | Last Update : Wed, 29 Sep 21