public createAndRenderAction ( |
||
$referenceNode | ||
$typoScriptPath | string | The TypoScript path of the collection |
$nodeData | array | |
$position | string | where the node should be added (allowed: before, into, after) |
return | string |
public function createAndRenderAction(Node $referenceNode, $typoScriptPath, array $nodeData, $position)
{
$newNode = $this->nodeOperations->create($referenceNode, $nodeData, $position);
$this->redirectToRenderNode($newNode, $typoScriptPath);
}