function StringFilter::operatorOptions
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::operatorOptions()
- 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::operatorOptions()
- 11.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::operatorOptions()
Build strings from the operators() for 'select' options.
Overrides FilterPluginBase::operatorOptions
1 call to StringFilter::operatorOptions()
- StringFilter::adminSummary in core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php - Display the filter on the administrative summary.
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ StringFilter.php, line 211
Class
- StringFilter
- Basic textfield filter to handle string filtering commands.
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions($which = 'title') {
$options = [];
foreach ($this->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.