protected function Range::defineOptions in Range 8
Same name in this branch
- 8 src/Plugin/views/filter/Range.php \Drupal\range\Plugin\views\filter\Range::defineOptions()
- 8 src/Plugin/views/argument/Range.php \Drupal\range\Plugin\views\argument\Range::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FilterPluginBase::defineOptions
File
- src/
Plugin/ views/ filter/ Range.php, line 33
Class
- Range
- Range views filter.
Namespace
Drupal\range\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['operator'] = [
'default' => 'within',
];
$options['value'] = [
'default' => '',
];
$options['include_endpoints'] = [
'default' => FALSE,
];
return $options;
}