Sonata\ProductBundle\Menu\ProductMenuBuilder::getFilterUri PHP Method

getFilterUri() protected method

Generates the filter uri.
protected getFilterUri ( $currentUri, $filter, $option ) : string
$currentUri
$filter
$option
return string
    protected function getFilterUri($currentUri, $filter, $option)
    {
        return sprintf('%s?filter=%s&option=%s', false !== ($pos = strpos($currentUri, '?')) ? substr($currentUri, 0, $pos) : $currentUri, $filter, $option);
    }