function StringFilter::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()
- 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()
Overrides FilterPluginBase::defineOptions
1 call to StringFilter::defineOptions()
- Combine::defineOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Information about options for all kinds of purposes will be held here.
1 method overrides StringFilter::defineOptions()
- Combine::defineOptions in core/
modules/ views/ src/ Plugin/ views/ filter/ Combine.php - Information about options for all kinds of purposes will be held here.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 68
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['expose']['contains']['required'] = [
'default' => FALSE,
];
$options['expose']['contains']['placeholder'] = [
'default' => '',
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.