You are here

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

2 calls to Numeric::operator_values()
Numeric::adminSummary in lib/Drupal/views/Plugin/views/filter/Numeric.php
Display the filter on the administrative summary
Numeric::value_form in lib/Drupal/views/Plugin/views/filter/Numeric.php
Provide a simple textfield for equality

File

lib/Drupal/views/Plugin/views/filter/Numeric.php, line 137
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_values($values = 1) {
  $options = array();
  foreach ($this
    ->operators() as $id => $info) {
    if ($info['values'] == $values) {
      $options[] = $id;
    }
  }
  return $options;
}