You are here

public function BooleanOperator::defaultExposeOptions in Drupal 8

Same name and namespace in other branches
  1. 9 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 204

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;
}