protected function DateRange::defineOptions in Views Contextual Range Filter 8
Define our options.
Overrides ArgumentPluginBase::defineOptions
File
- src/
Plugin/ views/ argument/ DateRange.php, line 80
Class
- DateRange
- Argument handler to accept a date range.
Namespace
Drupal\contextual_range_filter\Plugin\views\argumentCode
protected function defineOptions() {
$options = parent::defineOptions();
// Relative dates do not apply to the 'created_month' etc options. As we
// don't know at ths stage which option we're dealing with, let's switch
// relative_dates OFF by default.
$options['relative_dates'] = [
'default' => FALSE,
];
$options['break_phrase'] = [
'default' => FALSE,
];
$options['not'] = [
'default' => FALSE,
];
return $options;
}