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