function PagerPluginBase::set_current_page in Views (for Drupal 7) 8.3
Set the current page.
Parameters
$number: If provided, the page number will be set to this. If NOT provided, the page number will be set from the global page array.
1 method overrides PagerPluginBase::set_current_page()
- Full::set_current_page in lib/
Drupal/ views/ Plugin/ views/ pager/ Full.php - Set the current page.
File
- lib/
Drupal/ views/ Plugin/ views/ pager/ PagerPluginBase.php, line 104 - Definition of Drupal\views\Plugin\views\pager\PagerPluginBase.
Class
- PagerPluginBase
- The base plugin to handle pager.
Namespace
Drupal\views\Plugin\views\pagerCode
function set_current_page($number = NULL) {
if (!is_numeric($number) || $number < 0) {
$number = 0;
}
$this->current_page = $number;
}