Neos.ContentRepository/Classes/Domain/Model/Workspace.php
protected function moveTargetNodeDataToNewPosition(NodeData $targetNodeData, $destinationPath)
    {
        if ($targetNodeData->getWorkspace()->getBaseWorkspace() === null) {
            $targetNodeData->setPath($destinationPath);
            return $targetNodeData;
        }

        return $targetNodeData->move($destinationPath, $targetNodeData->getWorkspace());
    }
protected function moveTargetNodeDataToNewPosition(NodeData $targetNodeData, $destinationPath)
    {
        if ($targetNodeData->getWorkspace()->getBaseWorkspace() === null) {
            $targetNodeData->setPath($destinationPath);
            return $targetNodeData;
        }

        return $targetNodeData->move($destinationPath, $targetNodeData->getWorkspace());
    }
protected function moveTargetNodeDataToNewPosition ( NodeData $ targetNodeData , $ destinationPath ) { if ( $ targetNodeData -> getWorkspace ( ) -> getBaseWorkspace ( ) === null ) { $ targetNodeData -> setPath ( $ destinationPath ) ; return $ targetNodeData ; } return $ targetNodeData -> move ( $ destinationPath , $ targetNodeData -> getWorkspace ( ) ) ; }
Moves an existing node in a target workspace to the place it should be in after publish,
in order to move all children to the new position as well.

@param NodeData $targetNodeData The (publish-) target node data to be moved
@param string $destinationPath The destination path of the move
@return NodeData Either the same object like $targetNodeData, or, if $targetNodeData was transformed into a shadow node, the new target node (see move())
Moves an existing node in a target workspace to the place it should be in after publish in order to move all children to the new position as well .