public function ContactStorageSettingsForm::submitForm in Contact Storage 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/ ContactStorageSettingsForm.php, line 49
Class
- ContactStorageSettingsForm
- Defines a class for contact_storage's settings form.
Namespace
Drupal\contact_storage\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('contact_storage.settings')
->set('send_html', $form_state
->getValue('send_html'))
->save();
}