public function updateNodeFromExisting(NodeInterface $node, Context $context) { $builder = new ArrayTreeBuilder(); foreach ($builder->parseWithoutRoot(variable_get($node->getName())) as $child) { $node->addChild($child); } }