Neos.Neos/Classes/Service/Controller/NodeController.php
public function createAndRenderAction(Node $referenceNode, $fusionPath, array $nodeData, $position)
    {
        $newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position);
        $this->redirectToRenderNode($newNode, $fusionPath);
    }
public function createAndRenderAction(Node $referenceNode, $fusionPath, array $nodeData, $position)
    {
        $newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position);
        $this->redirectToRenderNode($newNode, $fusionPath);
    }
public function createAndRenderAction ( Node $ referenceNode , $ fusionPath , array $ nodeData , $ position ) { $ newNode = $ this -> nodeOperations -> create ( $ referenceNode , $ nodeData , $ position ) ; $ this -> redirectToRenderNode ( $ newNode , $ fusionPath ) ; }
Creates a new node and renders the node inside the containing content collection.

@param Node $referenceNode
@param string $fusionPath The Fusion path of the collection
@param array $nodeData
@param string $position where the node should be added (allowed: before, into, after)
@return string
Creates a new node and renders the node inside the containing content collection .