You are here

protected function NumericFilter::operatorValues in Drupal 9

Same name and namespace in other branches
  1. 8 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 183

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