function Full::get_pager_total

1 call to Full::get_pager_total()
Full::update_page_info in drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php
Update global paging info.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/pager/Full.php, line 345
Definition of Drupal\views\Plugin\views\pager\Full.

Class

Full
The plugin to handle full pager.

Namespace

Drupal\views\Plugin\views\pager

Code

function get_pager_total() {
  if ($items_per_page = intval($this
    ->get_items_per_page())) {
    return ceil($this->total_items / $items_per_page);
  }
  else {
    return 1;
  }
}