function Mini::render

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::render()
  2. 10 core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::render()
  3. 11.x core/modules/views/src/Plugin/views/pager/Mini.php \Drupal\views\Plugin\views\pager\Mini::render()

Overrides PagerPluginBase::render

File

core/modules/views/src/Plugin/views/pager/Mini.php, line 90

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 = [
        1 => $this->options['tags']['previous'],
        3 => $this->options['tags']['next'],
    ];
    return [
        '#theme' => $this->themeFunctions(),
        '#tags' => $tags,
        '#element' => $this->options['id'],
        '#parameters' => $input,
        '#route_name' => !empty($this->view->live_preview) ? '<current>' : '<none>',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.