public function TypeStyleSettingsForm::submitForm in Type Style 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/ TypeStyleSettingsForm.php, line 51
Class
- TypeStyleSettingsForm
- Configure Type Style settings for the site.
Namespace
Drupal\type_style\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$config = $this
->config('type_style.settings');
$config
->set('icon_type', $form_state
->getValue('icon_type'));
$config
->set('use_cdn', $form_state
->getValue('use_cdn'));
$config
->save();
}