public function Fz152SettingsForms::submitForm in FZ152 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/ Fz152SettingsForms.php, line 48
Class
- Fz152SettingsForms
- Configure example settings for this site.
Namespace
Drupal\fz152\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('fz152.forms')
->set('forms', $form_state
->getValue('forms'))
->save();
parent::submitForm($form, $form_state);
}