protected function DateRecurFilter::defineOptions in Recurring Dates Field 3.1.x
Same name and namespace in other branches
- 8.2 src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::defineOptions()
- 3.x src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::defineOptions()
- 3.0.x src/Plugin/views/filter/DateRecurFilter.php \Drupal\date_recur\Plugin\views\filter\DateRecurFilter::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/ DateRecurFilter.php, line 117
Class
- DateRecurFilter
- Date range/occurrence filter.
Namespace
Drupal\date_recur\Plugin\views\filterCode
protected function defineOptions() : array {
$options = parent::defineOptions();
// The minimum date in \DATE_ISO8601 format.
$options['value_min'] = [
'default' => NULL,
];
// The minimum date in \DATE_ISO8601 format.
$options['value_max'] = [
'default' => NULL,
];
$options['value_granularity'] = [
'default' => 'second',
];
return $options;
}