function NumericFilter::operatorValues

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorValues()
  2. 8.9.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorValues()
  3. 11.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorValues()
3 calls to NumericFilter::operatorValues()
NumericFilter::adminSummary in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Display the filter on the administrative summary.
NumericFilter::buildExposeForm in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Options form subform for exposed filter options.
NumericFilter::valueForm in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Provide a simple textfield for equality.

File

core/modules/views/src/Plugin/views/filter/NumericFilter.php, line 192

Class

NumericFilter
Simple filter to handle greater than/less than filters.

Namespace

Drupal\views\Plugin\views\filter

Code

protected function operatorValues($values = 1) {
    $options = [];
    foreach ($this->operators() as $id => $info) {
        if ($info['values'] == $values) {
            $options[] = $id;
        }
    }
    return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.