function BooleanOperator::defaultExposeOptions
Provide default options for exposed filters.
Overrides FilterPluginBase::defaultExposeOptions
File
-
core/
modules/ views/ src/ Plugin/ views/ filter/ BooleanOperator.php, line 212
Class
- BooleanOperator
- Simple filter to handle matching of boolean values.
Namespace
Drupal\views\Plugin\views\filterCode
public function defaultExposeOptions() {
parent::defaultExposeOptions();
$this->options['expose']['operator_id'] = '';
$this->options['expose']['label'] = $this->value_value;
$this->options['expose']['required'] = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.