You are here

protected function StringRangeArgument::defineOptions in Views Contextual Range Filter 8

Define our options.

Overrides StringArgument::defineOptions

File

src/Plugin/views/argument/StringRangeArgument.php, line 23

Class

StringRangeArgument
Argument handler to accept a string range.

Namespace

Drupal\contextual_range_filter\Plugin\views\argument

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  // Add 'Exclude' tick box, as it is not supplied by the String base class.
  $options['not'] = [
    'default' => FALSE,
    'bool' => TRUE,
  ];
  return $options;
}