public function StringFilter::operatorOptions 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::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 205
Class
- StringFilter
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions($which = 'title') {
$options = [];
foreach ($this
->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}