function Pager::getTotalItems

Same name in other branches
  1. 9 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalItems()
  2. 10 core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalItems()
  3. 11.x core/lib/Drupal/Core/Pager/Pager.php \Drupal\Core\Pager\Pager::getTotalItems()

Gets the total number of items.

Return value

int The total number of items.

File

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

Class

Pager
A value object that represents a pager.

Namespace

Drupal\Core\Pager

Code

public function getTotalItems() {
    return $this->totalItems;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.