src/Filter/FilterUrlBuilder.php
public function getCurrentFilterUrl($options = null): FilterUrl
    {
        $this->addFromCurrentRequest($filterUrl = new FilterUrl(), $options);

        return $filterUrl;
    }
public function getCurrentFilterUrl($options = null): FilterUrl
    {
        $this->addFromCurrentRequest($filterUrl = new FilterUrl(), $options);

        return $filterUrl;
    }
Generate a filter URL from the current request.

@param array $options The options for updating - for details see FilterUrlBuilder::addFromCurrentRequest().

@return FilterUrl