public function TestSearch::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/ search/ TestSearch.php, line 50
Class
- TestSearch
- Defines a test search plugin class.
Namespace
Drupal\search_api_autocomplete_test\Plugin\search_api_autocomplete\searchCode
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());
}