You are here

public function ViewExecutable::renderPager in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::renderPager()

Render the pager, if necessary.

File

core/modules/views/src/ViewExecutable.php, line 902
Contains \Drupal\views\ViewExecutable.

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function renderPager($exposed_input) {
  if (!empty($this->pager) && $this->pager
    ->usePager()) {
    return $this->pager
      ->render($exposed_input);
  }
  return '';
}