function ViewExecutable::renderPager
Same name in other branches
- 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::renderPager()
- 8.9.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::renderPager()
- 11.x core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::renderPager()
Renders the pager, if necessary.
Parameters
string[] $exposed_input: The input values from the exposed forms and sorts of the view.
Return value
array|string The render array of the pager if it's set, blank string otherwise.
File
-
core/
modules/ views/ src/ ViewExecutable.php, line 1012
Class
- ViewExecutable
- Represents a view as a whole.
Namespace
Drupal\viewsCode
public function renderPager($exposed_input) {
if ($this->usePager()) {
return $this->pager
->render($exposed_input);
}
return '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.