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