Answers for "drupal 8 get nodes of type"

PHP
2

drupal 8 get all nodes of type

$nids = \Drupal::entityQuery('node')->condition('type','my_custom_type')->execute();
$nodes =  \Drupal\node\Entity\Node::loadMultiple($nids);
Posted by: Guest on September-12-2021

Browse Popular Code Answers by Language