public function ConfigFormBase::submitForm in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::submitForm()
- 10 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::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 FormInterface::submitForm
26 calls to ConfigFormBase::submitForm()
- AccountSettingsForm::submitForm in core/
modules/ user/ src/ AccountSettingsForm.php - Form submission handler.
- AdvancedSettingsForm::submitForm in core/
modules/ views_ui/ src/ Form/ AdvancedSettingsForm.php - Form submission handler.
- BasicSettingsForm::submitForm in core/
modules/ views_ui/ src/ Form/ BasicSettingsForm.php - Form submission handler.
- BookSettingsForm::submitForm in core/
modules/ book/ src/ Form/ BookSettingsForm.php - Form submission handler.
- FileSystemForm::submitForm in core/
modules/ system/ src/ Form/ FileSystemForm.php - Form submission handler.
32 methods override ConfigFormBase::submitForm()
- AccountSettingsForm::submitForm in core/
modules/ user/ src/ AccountSettingsForm.php - Form submission handler.
- AdvancedSettingsForm::submitForm in core/
modules/ views_ui/ src/ Form/ AdvancedSettingsForm.php - Form submission handler.
- BasicSettingsForm::submitForm in core/
modules/ views_ui/ src/ Form/ BasicSettingsForm.php - Form submission handler.
- BookSettingsForm::submitForm in core/
modules/ book/ src/ Form/ BookSettingsForm.php - Form submission handler.
- FileSystemForm::submitForm in core/
modules/ system/ src/ Form/ FileSystemForm.php - Form submission handler.
File
- core/
lib/ Drupal/ Core/ Form/ ConfigFormBase.php, line 53
Class
- ConfigFormBase
- Base class for implementing system configuration forms.
Namespace
Drupal\Core\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->messenger()
->addStatus($this
->t('The configuration options have been saved.'));
}