You are here

public function DisplayPluginBase::isPagerEnabled in Views (for Drupal 7) 8.3

Whether the display is using a pager or not.

Return value

bool

File

lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 272
Definition of Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function isPagerEnabled() {
  if ($this
    ->usesPager()) {
    $pager = $this
      ->getPlugin('pager');
    if ($pager) {
      return $pager
        ->use_pager();
    }
  }
  return FALSE;
}