eZ\Publish\Core\REST\Server\Input\Parser\Limitation\PathStringRouteBasedLimitationParser::parseIdFromHref PHP Method

parseIdFromHref() protected method

Prefixes the value parsed by the parent with a '/'.
protected parseIdFromHref ( $limitationValue ) : false | mixed
$limitationValue
return false | mixed
    protected function parseIdFromHref($limitationValue)
    {
        if (substr($limitationValue['_href'], -1) !== '/') {
            throw new Exceptions\Parser("The '_href' attribute must end with a slash.");
        }
        return '/' . ltrim(parent::parseIdFromHref($limitationValue), '/');
    }
PathStringRouteBasedLimitationParser