Saves changes to a node or adds a new node.
Drupal\node\Node $node: The $node entity to be saved. If $node->nid is omitted (or $node->is_new is TRUE), a new node will be added.
... See full list
function node_save(Node $node) { $node ->save(); }