src/Sulu/Component/Content/Types/ResourceLocator/Mapper/PhpcrMapper.php
private function getResourceLocator($path, $webspaceKey, $languageCode, $segmentKey)
    {
        $basePath = $this->getWebspaceRouteNodeBasePath($webspaceKey, $languageCode, $segmentKey);
        if ($path === $basePath) {
            return '/';
        }

        if (false !== strpos($path, $basePath . '/')) {
            $result = str_replace($basePath . '/', '/', $path);
            if (0 === strpos($result, '/')) {
                return $result;
            }
        }

        return false;
    }
private function getResourceLocator($path, $webspaceKey, $languageCode, $segmentKey)
    {
        $basePath = $this->getWebspaceRouteNodeBasePath($webspaceKey, $languageCode, $segmentKey);
        if ($path === $basePath) {
            return '/';
        }

        if (false !== strpos($path, $basePath . '/')) {
            $result = str_replace($basePath . '/', '/', $path);
            if (0 === strpos($result, '/')) {
                return $result;
            }
        }

        return false;
    }
private function getResourceLocator ( $ path , $ webspaceKey , $ languageCode , $ segmentKey ) { $ basePath = $ this -> getWebspaceRouteNodeBasePath ( $ webspaceKey , $ languageCode , $ segmentKey ) ; if ( $ path === $ basePath ) { return '/' ; } if ( false !== strpos ( $ path , $ basePath . '/' ) ) { $ result = str_replace ( $ basePath . '/' , '/' , $ path ) ; if ( 0 === strpos ( $ result , '/' ) ) { return $ result ; } } return false ; }
Returns resource-locator.

@param string $path
@param string $webspaceKey
@param string $languageCode
@param string $segmentKey

@return string
Returns resource - locator .