ViewExecutable::renderPager

public ViewExecutable::renderPager($exposed_input)

Renders the pager, if necessary.

Parameters

string[] $exposed_input: The input values from the exposed forms and sorts of the view.

Return value

array|string The render array of the pager if it's set, blank string otherwise.

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

1
2
3
4
5
6
7
public function renderPager($exposed_input) {
  if (!empty($this->pager) && $this->pager->usePager()) {
    return $this->pager->render($exposed_input);
  }
 
  return '';
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.