Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewExecutable.php

function 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 689

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal