public function W3CValidatorOperationForm::submitForm in W3C Validator 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 FormInterface::submitForm
File
- src/
Form/ W3CValidatorOperationForm.php, line 119
Class
- W3CValidatorOperationForm
- Provides the operation form on report page.
Namespace
Drupal\w3c_validator\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
// Save global configurations.
$this->configFactory
->getEditable('w3c_validator.settings')
->set('use_token', $values['use_token'])
->set('admin_pages', $values['admin_pages'])
->save();
$form_state
->setRedirect('w3c_validator.confirm');
}