function SimpletestSettingsForm::submitForm

Overrides ConfigFormBase::submitForm

File

core/modules/simpletest/src/Form/SimpletestSettingsForm.php, line 114

Class

SimpletestSettingsForm
Configure simpletest settings for this site.

Namespace

Drupal\simpletest\Form

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.