Neos.Neos/Classes/Service/View/NodeView.php
public function assignNodeAndChildNodes(NodeInterface $node, $nodeTypeFilter = '', $depth = 0, NodeInterface $untilNode = null)
    {
        $this->outputStyle = self::STYLE_TREE;
        $data = [];
        if ($this->privilegeManager->isGranted(NodeTreePrivilege::class, new NodePrivilegeSubject($node))) {
            $childNodes = [];
            $this->collectChildNodeData($childNodes, $node, ($nodeTypeFilter === '' ? null : $nodeTypeFilter), $depth, $untilNode);
            $data = $this->collectTreeNodeData($node, true, $childNodes, $childNodes !== []);
        }
        $this->setConfiguration(['value' => ['data' => ['_descendAll' => []]]]);

        $this->assign('value', ['data' => $data, 'success' => true]);
    }
public function assignNodeAndChildNodes(NodeInterface $node, $nodeTypeFilter = '', $depth = 0, NodeInterface $untilNode = null)
    {
        $this->outputStyle = self::STYLE_TREE;
        $data = [];
        if ($this->privilegeManager->isGranted(NodeTreePrivilege::class, new NodePrivilegeSubject($node))) {
            $childNodes = [];
            $this->collectChildNodeData($childNodes, $node, ($nodeTypeFilter === '' ? null : $nodeTypeFilter), $depth, $untilNode);
            $data = $this->collectTreeNodeData($node, true, $childNodes, $childNodes !== []);
        }
        $this->setConfiguration(['value' => ['data' => ['_descendAll' => []]]]);

        $this->assign('value', ['data' => $data, 'success' => true]);
    }
public function assignNodeAndChildNodes ( NodeInterface $ node , $ nodeTypeFilter = '' , $ depth = 0 , NodeInterface $ untilNode = null ) { $ this -> outputStyle = self :: STYLE_TREE ; $ data = [ ] ; if ( $ this -> privilegeManager -> isGranted ( NodeTreePrivilege :: class , new NodePrivilegeSubject ( $ node ) ) ) { $ childNodes = [ ] ; $ this -> collectChildNodeData ( $ childNodes , $ node , ( $ nodeTypeFilter === '' ? null : $ nodeTypeFilter ) , $ depth , $ untilNode ) ; $ data = $ this -> collectTreeNodeData ( $ node , true , $ childNodes , $ childNodes !== [ ] ) ; } $ this -> setConfiguration ( [ 'value' => [ 'data' => [ '_descendAll' => [ ] ] ] ] ) ; $ this -> assign ( 'value' , [ 'data' => $ data , 'success' => true ] ) ; }
Prepares this view to render a list or tree of given node including child nodes.

@param NodeInterface $node The node to fetch child nodes of
@param string $nodeTypeFilter Criteria for filtering the child nodes
@param integer $depth How many levels of childNodes (0 = unlimited)
@param NodeInterface $untilNode if given, expand all nodes on the rootline towards $untilNode, no matter what is defined with $depth.
@return void
Prepares this view to render a list or tree of given node including child nodes .