You are here

public function DisplayPluginBase::isPagerEnabled in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 310
Contains \Drupal\views\Plugin\views\display\DisplayPluginBase.

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;
}