public function ConfigurationForm::submitForm in Thunder 8.3
Same name in this branch
- 8.3 modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 8.3 modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::submitForm()
Same name and namespace in other branches
- 8.5 modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 8.2 modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 8.4 modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 6.2.x modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 6.0.x modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::submitForm()
- 6.1.x modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::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
- modules/
thunder_media/ src/ Form/ ConfigurationForm.php, line 57
Class
- ConfigurationForm
- Class ConfigurationForm.
Namespace
Drupal\thunder_media\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('thunder_media.settings')
->set('enable_filename_transliteration', $form_state
->getValue('enable_filename_transliteration'))
->set('enable_filefield_remove_button', $form_state
->getValue('enable_filefield_remove_button'))
->save();
}