You are here

public function DisplayPluginBase::isPagerEnabled in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayPluginBase.php \Drupal\views\Plugin\views\display\DisplayPluginBase::isPagerEnabled()

Whether the display is using a pager or not.

Return value

bool

Overrides DisplayPluginInterface::isPagerEnabled

File

core/modules/views/src/Plugin/views/display/DisplayPluginBase.php, line 308

Class

DisplayPluginBase
Base class for views display plugins.

Namespace

Drupal\views\Plugin\views\display

Code

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