public function SimpletestSettingsForm::submitForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/Form/SimpletestSettingsForm.php \Drupal\simpletest\Form\SimpletestSettingsForm::submitForm()
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 117 - Contains \Drupal\simpletest\Form\SimpletestSettingsForm.
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);
}