You are here

public function TestSearch::submitConfigurationForm in Search API 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

modules/search_api_db/tests/search_api_db_test_autocomplete/src/Plugin/search_api_autocomplete/search/TestSearch.php, line 50

Class

TestSearch
Defines a test type class.

Namespace

Drupal\search_api_db_test_autocomplete\Plugin\search_api_autocomplete\search

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());
}