load node by id + drupal 7 code example Example: load node by id drupal 8 $node = \Drupal::entityTypeManager()->getStorage('node')->load($nid);