You are here

public function Mini::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::render()

Return the renderable array of the pager.

Called during the view render process.

Parameters

$input: Any extra GET parameters that should be retained, such as exposed input.

Overrides PagerPluginBase::render

File

core/modules/views/src/Plugin/views/pager/Mini.php, line 95
Contains \Drupal\views\Plugin\views\pager\Mini.

Class

Mini
The plugin to handle mini pager.

Namespace

Drupal\views\Plugin\views\pager

Code

public function render($input) {

  // The 1, 3 indexes are correct, see template_preprocess_pager().
  $tags = array(
    1 => $this->options['tags']['previous'],
    3 => $this->options['tags']['next'],
  );
  return array(
    '#theme' => $this
      ->themeFunctions(),
    '#tags' => $tags,
    '#element' => $this->options['id'],
    '#parameters' => $input,
    '#route_name' => !empty($this->view->live_preview) ? '<current>' : '<none>',
  );
}