You are here

public function Pager::getCurrentPage in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getCurrentPage()
  2. 10 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getCurrentPage()

Gets the current page.

Return value

int The current page.

File

core/lib/Drupal/Core/Pager/Pager.php, line 107

Class

Pager
A value object that represents a pager.

Namespace

Drupal\Core\Pager

Code

public function getCurrentPage() {
  return $this->currentPage;
}