Prepares this view to render a list or tree of child nodes of the given node.
public assignChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter, integer $outputStyle = self::STYLE_LIST, integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null ) : void | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to fetch child nodes of |
$nodeTypeFilter | string | Criteria for filtering the child nodes |
$outputStyle | integer | Either STYLE_TREE or STYLE_list |
$depth | integer | How many levels of childNodes (0 = unlimited) |
$untilNode | Neos\ContentRepository\Domain\Model\NodeInterface | if given, expand all nodes on the rootline towards $untilNode, no matter what is defined with $depth. |
return | void |
/** * Return child nodes of specified node for usage in a TreeLoader * * @param Node $node The node to find child nodes for * @param string $nodeTypeFilter A node type filter * @param integer $depth levels of childNodes (0 = unlimited) * @param Node $untilNode expand the child nodes until $untilNode is reached, independent of $depth * @return void */ public function getChildNodesForTreeAction(Node $node, $nodeTypeFilter, $depth, Node $untilNode) { $this->view->assignChildNodes($node, $nodeTypeFilter, NodeView::STYLE_TREE, $depth, $untilNode); }