public function Pagerer::getLastPage in Pagerer 8
Same name and namespace in other branches
- 8.2 src/Pagerer.php \Drupal\pagerer\Pagerer::getLastPage()
Gets last page in the pager (zero-index).
Return value
int The index of the last page in the pager.
Overrides PagererInterface::getLastPage
File
- src/
Pagerer.php, line 172
Class
- Pagerer
- Pagerer pager management class.
Namespace
Drupal\pagererCode
public function getLastPage() {
global $pager_total;
return isset($pager_total[$this->element]) ? $pager_total[$this->element] - 1 : -1;
}