function NumericFilter::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::defineOptions()
- 11.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::defineOptions()
Overrides FilterPluginBase::defineOptions
1 call to NumericFilter::defineOptions()
- Date::defineOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ Date.php - Information about options for all kinds of purposes will be held here.
1 method overrides NumericFilter::defineOptions()
- Date::defineOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ Date.php - Information about options for all kinds of purposes will be held here.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ NumericFilter.php, line 18
Class
- NumericFilter
- Simple filter to handle greater than/less than filters.
Namespace
Drupal\views\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['value'] = [
'contains' => [
'min' => [
'default' => '',
],
'max' => [
'default' => '',
],
'value' => [
'default' => '',
],
],
];
$options['expose']['contains']['placeholder'] = [
'default' => '',
];
$options['expose']['contains']['min_placeholder'] = [
'default' => '',
];
$options['expose']['contains']['max_placeholder'] = [
'default' => '',
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.