function NumericFilter::operatorOptions

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorOptions()
  2. 10 core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorOptions()
  3. 11.x core/modules/views/src/Plugin/views/filter/NumericFilter.php \Drupal\views\Plugin\views\filter\NumericFilter::operatorOptions()

Provide a list of all the numeric operators

Overrides FilterPluginBase::operatorOptions

1 call to NumericFilter::operatorOptions()
NumericFilter::adminSummary in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Display the filter on the administrative summary

File

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

Class

NumericFilter
Simple filter to handle greater than/less than filters

Namespace

Drupal\views\Plugin\views\filter

Code

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

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