function PagerParameters::getQueryParameters
Same name in other branches
- 9 core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getQueryParameters()
- 8.9.x core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getQueryParameters()
- 11.x core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getQueryParameters()
File
-
core/
lib/ Drupal/ Core/ Pager/ PagerParameters.php, line 35
Class
- PagerParameters
- Provides pager information contained within the current request.
Namespace
Drupal\Core\PagerCode
public function getQueryParameters() {
$request = $this->requestStack
->getCurrentRequest();
if ($request) {
return UrlHelper::filterQueryParameters($request->query
->all(), [
'page',
]);
}
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.