src/mako/pagination/Pagination.php
protected function buildPageUrl(int $page): string
	{
		if($this->params === null)
		{
			$this->params = $this->request->getQuery()->all();
		}

		return $this->urlBuilder->current([$this->options['page_key'] => $page] + $this->params);
	}
protected function buildPageUrl(int $page): string
	{
		if($this->params === null)
		{
			$this->params = $this->request->getQuery()->all();
		}

		return $this->urlBuilder->current([$this->options['page_key'] => $page] + $this->params);
	}
protected function buildPageUrl ( int $ page ) : string { if ( $ this -> params === null ) { $ this -> params = $ this -> request -> getQuery ( ) -> all ( ) ; } return $ this -> urlBuilder -> current ( [ $ this -> options [ 'page_key' ] => $ page ] + $ this -> params ) ; }
Builds a url to the desired page.

@param  int    $page Page
@return string
Builds a url to the desired page .