Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewExecutable.php

function ViewExecutable::renderPager

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 1013

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal