function FilterPluginBase::defaultExposeOptions

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::defaultExposeOptions()
  2. 10 core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::defaultExposeOptions()
  3. 11.x core/modules/views/src/Plugin/views/filter/FilterPluginBase.php \Drupal\views\Plugin\views\filter\FilterPluginBase::defaultExposeOptions()

Provide default options for exposed filters.

Overrides HandlerBase::defaultExposeOptions

4 calls to FilterPluginBase::defaultExposeOptions()
BooleanOperator::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/BooleanOperator.php
Provide default options for exposed filters.
InOperator::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/InOperator.php
Provide default options for exposed filters.
NumericFilter::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Provide default options for exposed filters.
StringFilter::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/StringFilter.php
Provide default options for exposed filters.
4 methods override FilterPluginBase::defaultExposeOptions()
BooleanOperator::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/BooleanOperator.php
Provide default options for exposed filters.
InOperator::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/InOperator.php
Provide default options for exposed filters.
NumericFilter::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/NumericFilter.php
Provide default options for exposed filters.
StringFilter::defaultExposeOptions in core/modules/views/src/Plugin/views/filter/StringFilter.php
Provide default options for exposed filters.

File

core/modules/views/src/Plugin/views/filter/FilterPluginBase.php, line 820

Class

FilterPluginBase
Base class for Views filters handler plugins.

Namespace

Drupal\views\Plugin\views\filter

Code

public function defaultExposeOptions() {
    $this->options['expose'] = [
        'use_operator' => FALSE,
        'operator' => $this->options['id'] . '_op',
        'operator_limit_selection' => FALSE,
        'operator_list' => [],
        'identifier' => $this->options['id'],
        'label' => $this->definition['title'],
        'description' => NULL,
        'remember' => FALSE,
        'multiple' => FALSE,
        'required' => FALSE,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.