eZ\Publish\Core\MVC\Symfony\Routing\UrlAliasRouter::removePathPrefix PHP Method

removePathPrefix() protected method

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