You are here

public function PagererParameters::getPagerQuery in Pagerer 8.2

Gets the request query parameter.

Return value

int[] Array of pagers. Keys are integers which are the element ID. Values are the zero-based current page from the request. The first page is 0, the second page is 1, etc.

Overrides PagerParameters::getPagerQuery

File

src/PagererParameters.php, line 94

Class

PagererParameters
Provides extended pager information contained within the current request.

Namespace

Drupal\pagerer

Code

public function getPagerQuery() {

  // Differs from core in the sense that the array of pagers is taken from the
  // pre-parsed querystring stored in ::$pagererItems and not from the
  // querystring every time.
  return $this
    ->getPagererItem('page') ?? [];
}