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

Breadcrumb

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

function Full::buildOptionsForm

Overrides SqlBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/pager/Full.php, line 42

Class

Full
The plugin to handle full pager.

Namespace

Drupal\views\Plugin\views\pager

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
    $form['quantity'] = [
        '#type' => 'number',
        '#min' => 0,
        '#title' => $this->t('Number of pager links visible'),
        '#description' => $this->t('Specify the number of links to pages to display in the pager.'),
        '#default_value' => $this->options['quantity'],
    ];
    $form['tags']['first'] = [
        '#type' => 'textfield',
        '#title' => $this->t('First page link text'),
        '#default_value' => $this->options['tags']['first'],
        '#weight' => -10,
    ];
    $form['tags']['last'] = [
        '#type' => 'textfield',
        '#title' => $this->t('Last page link text'),
        '#default_value' => $this->options['tags']['last'],
        '#weight' => 10,
    ];
}

API Navigation

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