public function PagerPluginBase::hasMoreRecords in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 214 - Contains \Drupal\views\Plugin\views\pager\PagerPluginBase.
Class
- PagerPluginBase
- Base class for views pager plugins.
Namespace
Drupal\views\Plugin\views\pagerCode
public function hasMoreRecords() {
return $this
->getItemsPerPage() && $this->total_items > (intval($this->current_page) + 1) * $this
->getItemsPerPage();
}