Neos.ContentRepository/Classes/Domain/Service/NodeService.php
public function nodePathAvailableForNode($nodePath, NodeInterface $node)
    {
        /** @var NodeData $existingNodeData */
        $existingNodeDataObjects = $this->nodeDataRepository->findByPathWithoutReduce($nodePath, $node->getWorkspace(), true);
        foreach ($existingNodeDataObjects as $existingNodeData) {
            if ($existingNodeData->getMovedTo() !== null && $existingNodeData->getMovedTo() === $node->getNodeData()) {
                return true;
            }
        }
        return !$this->nodePathExistsInAnyContext($nodePath);
    }
public function nodePathAvailableForNode($nodePath, NodeInterface $node)
    {
        /** @var NodeData $existingNodeData */
        $existingNodeDataObjects = $this->nodeDataRepository->findByPathWithoutReduce($nodePath, $node->getWorkspace(), true);
        foreach ($existingNodeDataObjects as $existingNodeData) {
            if ($existingNodeData->getMovedTo() !== null && $existingNodeData->getMovedTo() === $node->getNodeData()) {
                return true;
            }
        }
        return !$this->nodePathExistsInAnyContext($nodePath);
    }
public function nodePathAvailableForNode ( $ nodePath , NodeInterface $ node ) { /** @var NodeData $existingNodeData */ $ existingNodeDataObjects = $ this -> nodeDataRepository -> findByPathWithoutReduce ( $ nodePath , $ node -> getWorkspace ( ) , true ) ; foreach ( $ existingNodeDataObjects as $ existingNodeData ) { if ( $ existingNodeData -> getMovedTo ( ) !== null && $ existingNodeData -> getMovedTo ( ) === $ node -> getNodeData ( ) ) { return true ; } } return ! $ this -> nodePathExistsInAnyContext ( $ nodePath ) ; }
Checks if the given node path can be used for the given node.

@param string $nodePath
@param NodeInterface $node
@return boolean
Checks if the given node path can be used for the given node .