You are here

function Numeric::operator_options in Views (for Drupal 7) 8.3

Provide a list of all the numeric operators

Overrides FilterPluginBase::operator_options

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

File

lib/Drupal/views/Plugin/views/filter/Numeric.php, line 128
Definition of Drupal\views\Plugin\views\filter\Numeric.

Class

Numeric
Simple filter to handle greater than/less than filters

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;
}