public function BootstrapSiteAlertConfig::submitForm in Bootstrap Site Alert 8.2
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/ BootstrapSiteAlertConfig.php, line 61
Class
- BootstrapSiteAlertConfig
- Class BootstrapSiteAlertConfig.
Namespace
Drupal\bootstrap_site_alert\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('bootstrap_site_alert.config')
->set('bootstrap_site_alert_version', $form_state
->getValue('bootstrap_site_alert_version')['value'])
->save();
parent::submitForm($form, $form_state);
}