Neos\Neos\TYPO3CR\NeosNodeService::normalizePath PHP 메소드

normalizePath() 공개 메소드

Normalizes the given node path to a reference path and returns an absolute path.
public normalizePath ( string $path, string $referencePath = null, string $siteNodePath = null ) : string
$path string The non-normalized path
$referencePath string a reference path in case the given path is relative.
$siteNodePath string Reference path to a site node. Relative paths starting with "~" will be based on the siteNodePath.
리턴 string The normalized absolute path
    public function normalizePath($path, $referencePath = null, $siteNodePath = null)
    {
        if (strpos($path, '~') === 0) {
            $path = NodePaths::addNodePathSegment($siteNodePath, substr($path, 1));
        }
        return parent::normalizePath($path, $referencePath);
    }
NeosNodeService