function tablesort_get_query_parameters
Same name in other branches
- 7.x 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.
Deprecated
in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Utility\TableSort::getQueryParameters() instead.
See also
\Drupal\Core\Utility\TableSort::getQueryParameters()
https://www.drupal.org/node/3009182
1 call to tablesort_get_query_parameters()
- TableSortLegacyTest::testQueryParameters in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TableSortLegacyTest.php - Tests deprecation of the tablesort_get_query_parameters() function.
File
-
core/
includes/ tablesort.inc, line 67
Code
function tablesort_get_query_parameters() {
@trigger_error(__FUNCTION__ . '() is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use \\Drupal\\Core\\Utility\\TableSort::getQueryParameters() instead. See https://www.drupal.org/node/3009182', E_USER_DEPRECATED);
return TableSort::getQueryParameters(\Drupal::request());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.