function ViewExecutable::usePager

Same name in other branches
  1. 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::usePager()
  2. 10 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::usePager()
  3. 11.x 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();
    }
}

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