You are here

public function BooleanOperator::defaultExposeOptions in Views (for Drupal 7) 8.3

Provide default options for exposed filters.

Overrides FilterPluginBase::defaultExposeOptions

File

lib/Drupal/views/Plugin/views/filter/BooleanOperator.php, line 162
Definition of Drupal\views\Plugin\views\filter\BooleanOperator.

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