function BooleanOperator::operatorOptions

Provide a list of options for the default operator form.

Should be overridden by classes that don't override operatorForm.

Overrides FilterPluginBase::operatorOptions

File

core/modules/views/src/Plugin/views/filter/BooleanOperator.php, line 72

Class

BooleanOperator
Simple filter to handle matching of boolean values.

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.