public function SimpletestSettingsForm::submitForm in Drupal 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- core/
modules/ simpletest/ src/ Form/ SimpletestSettingsForm.php, line 114
Class
- SimpletestSettingsForm
- Configure simpletest settings for this site.
Namespace
Drupal\simpletest\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('simpletest.settings')
->set('clear_results', $form_state
->getValue('simpletest_clear_results'))
->set('verbose', $form_state
->getValue('simpletest_verbose'))
->set('httpauth.method', $form_state
->getValue('simpletest_httpauth_method'))
->set('httpauth.username', $form_state
->getValue('simpletest_httpauth_username'))
->set('httpauth.password', $form_state
->getValue('simpletest_httpauth_password'))
->save();
parent::submitForm($form, $form_state);
}