function Full::defineOptions

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/pager/Full.php \Drupal\views\Plugin\views\pager\Full::defineOptions()
  2. 8.9.x 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 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;
}

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