public function SettingsForm::submitForm in Minify Source HTML 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
- src/
Form/ SettingsForm.php, line 56
Class
- SettingsForm
- Settings form for the module.
Namespace
Drupal\minifyhtml\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('minifyhtml.config')
->set('strip_comments', $form_state
->getValue('strip_comments'))
->set('minify', $form_state
->getValue('minifyhtml_minify'))
->save();
parent::submitForm($form, $form_state);
}