function Search::defineOptions

Same name and namespace in other branches
  1. 9 core/modules/search/src/Plugin/views/filter/Search.php \Drupal\search\Plugin\views\filter\Search::defineOptions()
  2. 8.9.x core/modules/search/src/Plugin/views/filter/Search.php \Drupal\search\Plugin\views\filter\Search::defineOptions()
  3. 11.x core/modules/search/src/Plugin/views/filter/Search.php \Drupal\search\Plugin\views\filter\Search::defineOptions()

Overrides FilterPluginBase::defineOptions

File

core/modules/search/src/Plugin/views/filter/Search.php, line 66

Class

Search
Filter handler for search keywords.

Namespace

Drupal\search\Plugin\views\filter

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['operator']['default'] = 'optional';
    return $options;
}

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