You are here

public function ViewExecutable::usePager in Drupal 8

Same name and namespace in other branches
  1. 9 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\views

Code

public function usePager() {
  if (!empty($this->pager)) {
    return $this->pager
      ->usePager();
  }
}