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

Breadcrumb

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

function Full::defineOptions

Overrides SqlBase::defineOptions

File

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

Class

Full
The plugin to handle full pager.

Namespace

Drupal\views\Plugin\views\pager

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    // Use the same default quantity that core uses by default.
    $options['quantity'] = [
        'default' => 9,
    ];
    $options['tags']['contains']['first'] = [
        'default' => $this->t('« First'),
    ];
    $options['tags']['contains']['last'] = [
        'default' => $this->t('Last »'),
    ];
    return $options;
}

API Navigation

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