Neos.Neos/Classes/Service/Controller/NodeController.php
public function createNodeForTheTreeAction(Node $referenceNode, array $nodeData, $position, $nodeTypeFilter = '')
    {
        $newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position);
        $this->view->assignNodeAndChildNodes($newNode, $nodeTypeFilter);
    }
public function createNodeForTheTreeAction(Node $referenceNode, array $nodeData, $position, $nodeTypeFilter = '')
    {
        $newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position);
        $this->view->assignNodeAndChildNodes($newNode, $nodeTypeFilter);
    }
public function createNodeForTheTreeAction ( Node $ referenceNode , array $ nodeData , $ position , $ nodeTypeFilter = '' ) { $ newNode = $ this -> nodeOperations -> create ( $ referenceNode , $ nodeData , $ position ) ; $ this -> view -> assignNodeAndChildNodes ( $ newNode , $ nodeTypeFilter ) ; }
Creates a new node and returns tree structure

@param Node $referenceNode
@param array $nodeData
@param string $position where the node should be added, -1 is before, 0 is in, 1 is after
@param string $nodeTypeFilter
@return void
Creates a new node and returns tree structure