You are here

public function SearchApiFulltext::defaultExposeOptions in Search API 8

Provide default options for exposed filters.

Overrides FilterPluginBase::defaultExposeOptions

File

src/Plugin/views/filter/SearchApiFulltext.php, line 145

Class

SearchApiFulltext
Defines a filter for adding a fulltext search to the view.

Namespace

Drupal\search_api\Plugin\views\filter

Code

public function defaultExposeOptions() {
  parent::defaultExposeOptions();
  $this->options['expose']['searched_fields_id'] = $this->options['id'] . '_searched_fields';
}