Helper method for creating a new node.
public create ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, array $nodeData, string $position ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
$referenceNode | Neos\ContentRepository\Domain\Model\NodeInterface | |
$nodeData | array | |
$position | string | |
리턴 | Neos\ContentRepository\Domain\Model\NodeInterface |
/** * 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 */ public function createNodeForTheTreeAction(Node $referenceNode, array $nodeData, $position, $nodeTypeFilter = '') { $newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position); $this->view->assignNodeAndChildNodes($newNode, $nodeTypeFilter); }