You are here

public function TestSuggester::submitConfigurationForm in Search API Autocomplete 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PluginFormInterface::submitConfigurationForm

File

tests/search_api_autocomplete_test/src/Plugin/search_api_autocomplete/suggester/TestSuggester.php, line 63

Class

TestSuggester
Defines a test suggester class.

Namespace

Drupal\search_api_autocomplete_test\Plugin\search_api_autocomplete\suggester

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->logMethodCall(__FUNCTION__, func_get_args());
  if ($override = $this
    ->getMethodOverride(__FUNCTION__)) {
    call_user_func($override, $this, $form, $form_state);
    return;
  }
  $this
    ->setConfiguration($form_state
    ->getValues());
}