Neos\ContentRepository\Domain\Model\Node::isNodePathAvailable PHP 메소드

isNodePathAvailable() 보호된 메소드

Checks if the given node path is available for this node, so either no node with this path exists or an existing node has the same identifier.
protected isNodePathAvailable ( string $path ) : boolean
$path string
리턴 boolean
    protected function isNodePathAvailable($path)
    {
        $existingNodeDataArray = $this->nodeDataRepository->findByPathWithoutReduce($path, $this->context->getWorkspace());
        $nonMatchingNodeData = array_filter($existingNodeDataArray, function (NodeData $nodeData) {
            return $nodeData->getIdentifier() !== $this->getIdentifier();
        });
        return $nonMatchingNodeData === [];
    }
Node