public function SettingsForm::submitForm in Fine Image Upload 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
- fiu_ui/
src/ Form/ SettingsForm.php, line 186
Class
- SettingsForm
- Defines a form that configures fiu ui settings.
Namespace
Drupal\fiu_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
foreach ($values as $key => $value) {
$this
->config('fiu_ui.settings')
->set($key, $value)
->save();
}
CSSGenerator::generate();
parent::submitForm($form, $form_state);
}