public function ViewExecutable::usePager in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::usePager()
Determines if the view uses a pager.
Return value
bool TRUE if the view uses a pager, FALSE otherwise.
3 calls to ViewExecutable::usePager()
- ViewExecutable::execute in core/
modules/ views/ src/ ViewExecutable.php - Executes the view's query.
- ViewExecutable::initPager in core/
modules/ views/ src/ ViewExecutable.php - Initializes the pager.
- ViewExecutable::renderPager in core/
modules/ views/ src/ ViewExecutable.php - Renders the pager, if necessary.
File
- core/
modules/ views/ src/ ViewExecutable.php, line 634
Class
- ViewExecutable
- Represents a view as a whole.
Namespace
Drupal\viewsCode
public function usePager() {
if (!empty($this->pager)) {
return $this->pager
->usePager();
}
}