public function SalvattoreAdminSettingsForm::submitForm in Salvattore (CSS driven Masonry) 8
Same name in this branch
- 8 src/SalvattoreAdminSettingsForm.php \Drupal\salvattore\SalvattoreAdminSettingsForm::submitForm()
- 8 src/Form/SalvattoreAdminSettingsForm.php \Drupal\salvattore\Form\SalvattoreAdminSettingsForm::submitForm()
File
- src/
SalvattoreAdminSettingsForm.php, line 16
Class
Namespace
Drupal\salvattoreCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('salvattore.settings');
foreach (Element::children($form) as $variable) {
$config
->set($variable, $form_state
->getValue($form[$variable]['#parents']));
}
$config
->save();
if (method_exists($this, '_submitForm')) {
$this
->_submitForm($form, $form_state);
}
parent::submitForm($form, $form_state);
}