You are here

protected function SearchApiFulltext::exposedTranslate in Search API 8

Make some translations to a form item to make it more suitable to exposing.

Overrides FilterPluginBase::exposedTranslate

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\filter

Code

protected function exposedTranslate(&$form, $type) {
  parent::exposedTranslate($form, $type);

  // We use custom validation for "required", so don't want the Form API to
  // interfere.
  // @see ::validateExposed()
  $form['#required'] = FALSE;
}