bundle/Pagerfanta/View/SiteView.php
protected function generateUrl(int $page): string
    {
        $routeGenerator = $this->routeGenerator;

        // We use trim here because Pagerfanta (or Symfony?) adds an extra '?'
        // at the end of page when there are no other query params
        return trim($routeGenerator($page), '?');
    }
protected function generateUrl(int $page): string
    {
        $routeGenerator = $this->routeGenerator;

        // We use trim here because Pagerfanta (or Symfony?) adds an extra '?'
        // at the end of page when there are no other query params
        return trim($routeGenerator($page), '?');
    }
protected function generateUrl ( int $ page ) : string { $ routeGenerator = $ this -> routeGenerator ; // We use trim here because Pagerfanta (or Symfony?) adds an extra '?' // at the end of page when there are no other query params return trim ( $ routeGenerator ( $ page ) , '?' ) ; }
Generates the URL based on provided page.
Generates the URL based on provided page .