You are here

public function PagerPluginBase::getTotalItems in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::getTotalItems()
  2. 10 core/modules/views/src/Plugin/views/pager/PagerPluginBase.php \Drupal\views\Plugin\views\pager\PagerPluginBase::getTotalItems()

Get the total number of items.

If NULL, we do not yet know what the total number of items are.

1 call to PagerPluginBase::getTotalItems()
SqlBase::updatePageInfo in core/modules/views/src/Plugin/views/pager/SqlBase.php
Update global paging info.

File

core/modules/views/src/Plugin/views/pager/PagerPluginBase.php, line 103

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

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