Neos\ContentRepository\Security\Authorization\Privilege\Node\NodePrivilegeContext::resolveNodePath PHP Метод

resolveNodePath() защищенный Метод

Resolves the given $nodePathOrIdentifier and returns its absolute path and or a boolean if the result directly matches the currently selected node
protected resolveNodePath ( string $nodePathOrIdentifier ) : boolean | string
$nodePathOrIdentifier string identifier or absolute path for the node to resolve
Результат boolean | string TRUE if the node matches the selected node, FALSE if the corresponding node does not exist. Otherwise the resolved absolute path with trailing slash
    protected function resolveNodePath($nodePathOrIdentifier)
    {
        if ($this->node === null) {
            return true;
        }
        if (preg_match(UuidValidator::PATTERN_MATCH_UUID, $nodePathOrIdentifier) !== 1) {
            return rtrim($nodePathOrIdentifier, '/') . '/';
        }
        if ($this->node->getIdentifier() === $nodePathOrIdentifier) {
            return true;
        }
        $node = $this->getNodeByIdentifier($nodePathOrIdentifier);
        if ($node === null) {
            return false;
        }
        return $node->getPath() . '/';
    }