function Full::defineOptions

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

Overrides SqlBase::defineOptions

File

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

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;
}

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