public function StringFilter::operatorOptions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 143 - Contains \Drupal\views\Plugin\views\filter\StringFilter.
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 = array();
foreach ($this
->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}