Node value from form state I have a node which I want to update from a form states values. I can set each value individually like:

$node-&gt;set("foo", "bar");


Is there a way to mass assign the values instead of setting each individually?
You can always create an array of name/value pairs and then a simple foreach loop to set them all. Or you can pass it to Node::create() if it is a new node.

There is no setMultiple() or similar API.