You are here

public function SuggestionsSpellCheck::buildOptionsForm in Search API Spellcheck 8.3

Provide a form to edit options for this plugin.

Overrides DidYouMeanSpellCheck::buildOptionsForm

File

src/Plugin/views/area/SuggestionsSpellCheck.php, line 29

Class

SuggestionsSpellCheck
Provides an area for messages.

Namespace

Drupal\search_api_spellcheck\Plugin\views\area

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['search_api_spellcheck_count'] = [
    '#default_value' => $this->options['search_api_spellcheck_count'] ?? TRUE,
    '#title' => $this
      ->t('The amount of results to show.'),
    '#type' => 'number',
  ];
}