function String::operator_options

Build strings from the operators() for 'select' options

Overrides FilterPluginBase::operator_options

1 call to String::operator_options()
String::adminSummary in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
Display the filter on the administrative summary

File

drupal/core/modules/views/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\filter

Code

function operator_options($which = 'title') {
  $options = array();
  foreach ($this
    ->operators() as $id => $info) {
    $options[$id] = $info[$which];
  }
  return $options;
}