public function BooleanOperator::operatorOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/filter/BooleanOperator.php \Drupal\views\Plugin\views\filter\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 52
Class
- BooleanOperator
- Simple filter to handle matching of boolean values
Namespace
Drupal\views\Plugin\views\filterCode
public function operatorOptions($which = 'title') {
$options = [];
foreach ($this
->operators() as $id => $info) {
$options[$id] = $info[$which];
}
return $options;
}