How to get all the field and value of node as an array? I am trying to render all field and value of a node as an array dynamically. How can i achieve that?
You can use the built-in Entity::toArray():

$node = \Drupal\node\Entity\Node::load(1);
print_r($node-&gt;toArray());