I know how to get a particular field (title field) of a node by following code:
$publications = \Drupal::entityManager()->getStorage('node')->load($node_id); $title = $publications->getTitle();
But I need to get all fields and values in that particular node. I tried
print_r($publications). Is there any way to get this?