public function SiteWideJSForm::submitForm in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.2 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.3 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.4 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.5 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.6 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.7 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 8.8 modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 10.3.x modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 10.0.x modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 10.1.x modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
- 10.2.x modules/custom/sitewide_js/src/Form/SiteWideJSForm.php \Drupal\sitewide_js\Form\SiteWideJSForm::submitForm()
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
- modules/
custom/ sitewide_js/ src/ Form/ SiteWideJSForm.php, line 79
Class
- SiteWideJSForm
- Class SiteWideJSForm.
Namespace
Drupal\sitewide_js\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('sitewide_js.settings')
->set('swjs_enabled', $form_state
->getValue('swjs_enabled'))
->set('swjs_location', $form_state
->getValue('swjs_location'))
->set('swjs_footer_region', $form_state
->getValue('swjs_footer_region'))
->set('swjs_javascript', $form_state
->getValue('swjs_javascript'))
->save();
}