Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 8 get all nodes of type

$nids = Drupal::entityQuery('node')->condition('type','my_custom_type')->execute();
$nodes =  Drupal
odeEntityNode::loadMultiple($nids);
Source by drupal.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #drupal #nodes #type
ADD COMMENT
Topic
Name
7+8 =