Neos.Neos/Classes/Service/Controller/NodeController.php
public function filterChildNodesForTreeAction(Node $node, $term, $nodeType)
    {
        $nodeTypes = strlen($nodeType) > 0 ? [$nodeType] : array_keys($this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document', false));
        $context = $node->getContext();
        if ($term !== '') {
            $nodes = $this->nodeSearchService->findByProperties($term, $nodeTypes, $context, $node);
        } else {
            $nodes = [];
            $nodeDataRecords = $this->nodeDataRepository->findByParentAndNodeTypeRecursively($node->getPath(), implode(',', $nodeTypes), $context->getWorkspace(), $context->getDimensions());
            foreach ($nodeDataRecords as $nodeData) {
                $matchedNode = $this->nodeFactory->createFromNodeData($nodeData, $context);
                if ($matchedNode !== null) {
                    $nodes[$matchedNode->getPath()] = $matchedNode;
                }
            }
        }
        $this->view->assignFilteredChildNodes(
            $node,
            $nodes
        );
    }
public function filterChildNodesForTreeAction(Node $node, $term, $nodeType)
    {
        $nodeTypes = strlen($nodeType) > 0 ? [$nodeType] : array_keys($this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document', false));
        $context = $node->getContext();
        if ($term !== '') {
            $nodes = $this->nodeSearchService->findByProperties($term, $nodeTypes, $context, $node);
        } else {
            $nodes = [];
            $nodeDataRecords = $this->nodeDataRepository->findByParentAndNodeTypeRecursively($node->getPath(), implode(',', $nodeTypes), $context->getWorkspace(), $context->getDimensions());
            foreach ($nodeDataRecords as $nodeData) {
                $matchedNode = $this->nodeFactory->createFromNodeData($nodeData, $context);
                if ($matchedNode !== null) {
                    $nodes[$matchedNode->getPath()] = $matchedNode;
                }
            }
        }
        $this->view->assignFilteredChildNodes(
            $node,
            $nodes
        );
    }
public function filterChildNodesForTreeAction ( Node $ node , $ term , $ nodeType ) { $ nodeTypes = strlen ( $ nodeType ) > 0 ? [ $ nodeType ] : array_keys ( $ this -> nodeTypeManager -> getSubNodeTypes ( 'Neos.Neos:Document' , false ) ) ; $ context = $ node -> getContext ( ) ; if ( $ term !== '' ) { $ nodes = $ this -> nodeSearchService -> findByProperties ( $ term , $ nodeTypes , $ context , $ node ) ; } else { $ nodes = [ ] ; $ nodeDataRecords = $ this -> nodeDataRepository -> findByParentAndNodeTypeRecursively ( $ node -> getPath ( ) , implode ( ',' , $ nodeTypes ) , $ context -> getWorkspace ( ) , $ context -> getDimensions ( ) ) ; foreach ( $ nodeDataRecords as $ nodeData ) { $ matchedNode = $ this -> nodeFactory -> createFromNodeData ( $ nodeData , $ context ) ; if ( $ matchedNode !== null ) { $ nodes [ $ matchedNode -> getPath ( ) ] = $ matchedNode ; } } } $ this -> view -> assignFilteredChildNodes ( $ node , $ nodes ) ; }
Return child nodes of specified node for usage in a TreeLoader based on filter

@param Node $node The node to find child nodes for
@param string $term
@param string $nodeType
@return void
Return child nodes of specified node for usage in a TreeLoader based on filter