function 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.