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

Breadcrumb

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

function ViewExecutable::getPager

Gets the current pager plugin.

Return value

\Drupal\views\Plugin\views\pager\PagerPluginBase The current pager plugin.

File

core/modules/views/src/ViewExecutable.php, line 970

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function getPager() {
    if (!isset($this->pager)) {
        $this->initPager();
    }
    return $this->pager;
}

API Navigation

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