You are here

public function ConfigFormBase::submitForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::submitForm()
  2. 9 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

1 call to ConfigFormBase::submitForm()
BookSettingsForm::submitForm in core/modules/book/src/Form/BookSettingsForm.php
Form submission handler.
31 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.

... See full list

File

core/lib/Drupal/Core/Form/ConfigFormBase.php, line 53

Class

ConfigFormBase
Base class for implementing system configuration forms.

Namespace

Drupal\Core\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->messenger()
    ->addStatus($this
    ->t('The configuration options have been saved.'));
}