Question : drupal 8 get all nodes of type
Answered by : cooperative-cormorant-hipqs32x42w2
$nids = \Drupal::entityQuery('node')->condition('type','my_custom_type')->execute();
$nodes = \Drupal\node\Entity\Node::loadMultiple($nids);
Source : https://drupal.stackexchange.com/questions/213689/get-all-nodes-of-given-type | Last Update : Sun, 19 Sep 21