public function FormsStepsSettingsForm::submitForm in Forms Steps 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/ FormsStepsSettingsForm.php, line 52
Class
- FormsStepsSettingsForm
- Class FormsStepsSettingsForm.
Namespace
Drupal\forms_steps\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config($this->config)
->set('message', $form_state
->getValue('message'))
->save();
}