public function SearchApiFulltext::showOperatorForm in Search API 8
Shortcut to display the operator form.
Overrides FilterPluginBase::showOperatorForm
File
- src/
Plugin/ views/ filter/ SearchApiFulltext.php, line 74
Class
- SearchApiFulltext
- Defines a filter for adding a fulltext search to the view.
Namespace
Drupal\search_api\Plugin\views\filterCode
public function showOperatorForm(&$form, FormStateInterface $form_state) {
parent::showOperatorForm($form, $form_state);
if (!empty($form['operator'])) {
$form['operator']['#description'] = $this
->t('Depending on the parse mode set, some of these options might not work as expected. Please either use "@multiple_words" as the parse mode or make sure that the filter behaves as expected for multiple words.', [
'@multiple_words' => $this
->t('Multiple words'),
]);
}
}