protected function StringFilter::defineOptions in Drupal 8
Same name and namespace in other branches
- 9 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()
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
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 64
Class
- StringFilter
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
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;
}