Contao\Pagination::linkToPage PHP Method

linkToPage() protected method

Generate a link and return the URL
protected linkToPage ( integer $intPage ) : string
$intPage integer The page ID
return string The URL string
    protected function linkToPage($intPage)
    {
        if ($intPage <= 1 && !$this->blnForceParam) {
            return ampersand($this->strUrl);
        } else {
            return ampersand($this->strUrl) . $this->strVarConnector . $this->strParameter . '=' . $intPage;
        }
    }