You are here

public function Pagerer::getCurrentPage in Pagerer 8

Gets the current page.

Return value

int The page to which the pager is currently positioned to.

Overrides PagererInterface::getCurrentPage

File

src/Pagerer.php, line 156

Class

Pagerer
Pagerer pager management class.

Namespace

Drupal\pagerer

Code

public function getCurrentPage() {
  global $pager_page_array;
  return isset($pager_page_array[$this->element]) ? $pager_page_array[$this->element] : NULL;
}