function BooleanOperator::operatorOptions

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

Overrides FilterPluginBase::operatorOptions

File

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

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.