Craft\ElementApi_PaginatorAdapter::getUrl PHP Method

getUrl() public method

Get the url for the given page.
public getUrl ( integer $page ) : string
$page integer
return string
    public function getUrl($page)
    {
        $params = craft()->request->getQuery();
        // This one belongs to Craft.
        unset($params['p']);
        $params[$this->pageParam] = $page;
        return UrlHelper::getUrl(craft()->request->getPath(), $params);
    }