eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter::removePathPrefix PHP 메소드

removePathPrefix() 보호된 메소드

Checks for presence of $prefix and removes it from $path if found.
protected removePathPrefix ( string $path, string $prefix ) : string
$path string
$prefix string
리턴 string
    protected function removePathPrefix($path, $prefix)
    {
        if ($prefix !== '/' && mb_stripos($path, $prefix) === 0) {
            $path = mb_substr($path, mb_strlen($prefix));
        }
        return $path;
    }