public function FancyFileDeleteManual::submitForm in Fancy File Delete 2.0.x
Same name and namespace in other branches
- 8 src/Form/FancyFileDeleteManual.php \Drupal\fancy_file_delete\Form\FancyFileDeleteManual::submitForm()
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/ FancyFileDeleteManual.php, line 67
Class
- FancyFileDeleteManual
- Class FancyFileDeleteManual.
Namespace
Drupal\fancy_file_delete\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('fancy_file_delete.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);
}