function pager_get_query_parameters

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.

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!pager.inc/function/pager_get_query_parameters/8.1.x