public function PagerParameters::getPagerParameter in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getPagerParameter()
- 10 core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getPagerParameter()
Gets the 'page' query parameter for the current request.
Return value
string The 'page' query parameter for the current request. This is a comma-delimited string of pager element values. Defaults to empty string if the query does not have a 'page' parameter.
Overrides PagerParametersInterface::getPagerParameter
1 call to PagerParameters::getPagerParameter()
- PagerParameters::getPagerQuery in core/
lib/ Drupal/ Core/ Pager/ PagerParameters.php - Gets the request query parameter.
File
- core/
lib/ Drupal/ Core/ Pager/ PagerParameters.php, line 64
Class
- PagerParameters
- Provides pager information contained within the current request.
Namespace
Drupal\Core\PagerCode
public function getPagerParameter() {
$request = $this->requestStack
->getCurrentRequest();
if ($request) {
return $request->query
->get('page', '');
}
return '';
}