public function PagerParameters::getPagerParameter in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getPagerParameter()
- 9 core/lib/Drupal/Core/Pager/PagerParameters.php \Drupal\Core\Pager\PagerParameters::getPagerParameter()
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 '';
}