function Mini::defineOptions

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

Overrides \Drupal\views\Plugin\views\pager\PagerPlugin::defineOptions().

Provides sane defaults for the next/previous links.

Overrides SqlBase::defineOptions

File

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

Class

Mini
The plugin to handle mini pager.

Namespace

Drupal\views\Plugin\views\pager

Code

public function defineOptions() {
    $options = parent::defineOptions();
    $options['tags']['contains']['previous']['default'] = '‹‹';
    $options['tags']['contains']['next']['default'] = '››';
    return $options;
}

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