public function DidYouMeanSpellCheck::buildOptionsForm in Search API Spellcheck 8.3
Provide a form to edit options for this plugin.
Overrides AreaPluginBase::buildOptionsForm
1 call to DidYouMeanSpellCheck::buildOptionsForm()
- SuggestionsSpellCheck::buildOptionsForm in src/
Plugin/ views/ area/ SuggestionsSpellCheck.php - Provide a form to edit options for this plugin.
1 method overrides DidYouMeanSpellCheck::buildOptionsForm()
- SuggestionsSpellCheck::buildOptionsForm in src/
Plugin/ views/ area/ SuggestionsSpellCheck.php - Provide a form to edit options for this plugin.
File
- src/
Plugin/ views/ area/ DidYouMeanSpellCheck.php, line 43
Class
- DidYouMeanSpellCheck
- Provides an area for messages.
Namespace
Drupal\search_api_spellcheck\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['search_api_spellcheck_hide_on_result'] = [
'#default_value' => $this->options['search_api_spellcheck_hide_on_result'] ?? TRUE,
'#title' => $this
->t('Hide when the view has results.'),
'#type' => 'checkbox',
];
}