You are here

function pager_get_query_parameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/includes/pager.inc \pager_get_query_parameters()

Compose a URL query parameter array for pager links.

Return value

array A URL query parameter array that consists of all components of the current page request except for those pertaining to paging.

2 calls to pager_get_query_parameters()
PagerTestController::queryParameters in core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
Returns a pager with 'parameters' variable.
pager_query_add_page in core/includes/pager.inc
Gets the URL query parameter array of a pager link.

File

core/includes/pager.inc, line 147
Functions to aid in presenting database results as a set of pages.

Code

function pager_get_query_parameters() {
  $query =& drupal_static(__FUNCTION__);
  if (!isset($query)) {
    $query = UrlHelper::filterQueryParameters(\Drupal::request()->query
      ->all(), array(
      'page',
    ));
  }
  return $query;
}