function String::operator_options in Views (for Drupal 7) 8.3
Build strings from the operators() for 'select' options
Overrides FilterPluginBase::operator_options
1 call to String::operator_options()
- String::adminSummary in lib/
Drupal/ views/ Plugin/ views/ filter/ String.php - Display the filter on the administrative summary
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ String.php, line 151 - Definition of Drupal\views\Plugin\views\filter\String.
Class
- String
- Basic textfield filter to handle string filtering commands including equality, like, not like, etc.
Namespace
Drupal\views\Plugin\views\filterCode
function operator_options($which = 'title') {
$options = array();
foreach ($this
->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}