$nid =36; // node id
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
$node = $node_storage->load($nid);
echo $node->id(); // 36
Drupal 8 Load a node by NID
Search form
Amazon Deals
Stay Connected
Most Read
Tags
Popular content
Recent content
ThirstySix helps support and grow the Drupal community with the Drupal Association.
Recent comments
$host =…