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

Breadcrumb

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

function Mini::render

Overrides PagerPluginBase::render

File

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

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'],
        '#pagination_heading_level' => parent::getHeadingLevel(),
        '#parameters' => $input,
        '#route_name' => !empty($this->view->live_preview) ? '<current>' : '<none>',
    ];
}

API Navigation

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