You are here

function tablesort_get_query_parameters in Zircon Profile 8

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

Composes a URL query parameter array for table sorting links.

Return value

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

3 calls to tablesort_get_query_parameters()
TableSortExtender::getQueryParameters in core/lib/Drupal/Core/Database/Query/TableSortExtender.php
Compose a URL query parameter array to append to table sorting requests.
tablesort_init in core/includes/tablesort.inc
Initializes the table sort context.
template_preprocess_views_view_table in core/modules/views/views.theme.inc
Prepares variables for views table templates.

File

core/includes/tablesort.inc, line 82
Functions to aid in the creation of sortable tables.

Code

function tablesort_get_query_parameters() {
  return UrlHelper::filterQueryParameters(\Drupal::request()->query
    ->all(), array(
    'sort',
    'order',
  ));
}