Neos.ContentRepository/Classes/Domain/Model/Node.php
protected function setPathInternalForAggregate(string $destinationPath, bool $recursiveCall): array
    {
        $originalPath = $this->nodeData->getPath();
        $nodeDataVariantsAndChildren = $this->nodeDataRepository->findByPathWithoutReduce($originalPath, $this->context->getWorkspace(), true, true);

        $changedNodePathsCollection = array_map(function ($nodeData) use ($destinationPath, $originalPath, $recursiveCall) {
            return $this->moveNodeData($nodeData, $originalPath, $destinationPath, $recursiveCall);
        }, $nodeDataVariantsAndChildren);

        return array_filter($changedNodePathsCollection);
    }
protected function setPathInternalForAggregate(string $destinationPath, bool $recursiveCall): array
    {
        $originalPath = $this->nodeData->getPath();
        $nodeDataVariantsAndChildren = $this->nodeDataRepository->findByPathWithoutReduce($originalPath, $this->context->getWorkspace(), true, true);

        $changedNodePathsCollection = array_map(function ($nodeData) use ($destinationPath, $originalPath, $recursiveCall) {
            return $this->moveNodeData($nodeData, $originalPath, $destinationPath, $recursiveCall);
        }, $nodeDataVariantsAndChildren);

        return array_filter($changedNodePathsCollection);
    }
protected function setPathInternalForAggregate ( string $ destinationPath , bool $ recursiveCall ) : array { $ originalPath = $ this -> nodeData -> getPath ( ) ; $ nodeDataVariantsAndChildren = $ this -> nodeDataRepository -> findByPathWithoutReduce ( $ originalPath , $ this -> context -> getWorkspace ( ) , true , true ) ; $ changedNodePathsCollection = array_map ( function ( $ nodeData ) use ( $ destinationPath , $ originalPath , $ recursiveCall ) { return $ this -> moveNodeData ( $ nodeData , $ originalPath , $ destinationPath , $ recursiveCall ) ; } , $ nodeDataVariantsAndChildren ) ; return array_filter ( $ changedNodePathsCollection ) ; }
Moves a node and sub nodes to the new path given with special logic for aggregate node types.

@param string $destinationPath the new node path
@param boolean $recursiveCall is this a recursive call
@return array of arrays with NodeVariant and old and new path and if this was a recursive call
Moves a node and sub nodes to the new path given with special logic for aggregate node types .