You are here

public function BooleanOperator::defaultExposeOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/filter/BooleanOperator.php \Drupal\views\Plugin\views\filter\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\filter

Code

public function defaultExposeOptions() {
  parent::defaultExposeOptions();
  $this->options['expose']['operator_id'] = '';
  $this->options['expose']['label'] = $this->value_value;
  $this->options['expose']['required'] = TRUE;
}