You are here

public function Mini::defineOptions in Drupal 8

Same name and namespace in other branches
  1. 9 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 25

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