function None::getItemsPerPage

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/pager/None.php \Drupal\views\Plugin\views\pager\None::getItemsPerPage()
  2. 10 core/modules/views/src/Plugin/views/pager/None.php \Drupal\views\Plugin\views\pager\None::getItemsPerPage()
  3. 11.x core/modules/views/src/Plugin/views/pager/None.php \Drupal\views\Plugin\views\pager\None::getItemsPerPage()

Get how many items per page this pager will display.

All but the leanest pagers should probably return a value here, so most pagers will not need to override this method.

Overrides PagerPluginBase::getItemsPerPage

File

core/modules/views/src/Plugin/views/pager/None.php, line 69

Class

None
Plugin for views without pagers.

Namespace

Drupal\views\Plugin\views\pager

Code

public function getItemsPerPage() {
    return 0;
}

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