You are here

public function Pagerer::getTotalPages in Pagerer 8

Gets total pages in the pager.

Return value

int The total number of pages managed by the pager.

Overrides PagererInterface::getTotalPages

File

src/Pagerer.php, line 164

Class

Pagerer
Pagerer pager management class.

Namespace

Drupal\pagerer

Code

public function getTotalPages() {
  global $pager_total;
  return isset($pager_total[$this->element]) ? $pager_total[$this->element] : 0;
}