You are here

public function PagerPluginBase::hasMoreRecords in Drupal 8

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

Determine if there are more records available.

This is primarily used to control the display of a more link.

File

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

Class

PagerPluginBase
Base class for views pager plugins.

Namespace

Drupal\views\Plugin\views\pager

Code

public function hasMoreRecords() {
  return $this
    ->getItemsPerPage() && $this->total_items > (intval($this->current_page) + 1) * $this
    ->getItemsPerPage();
}