function ConfigFormBase::submitForm

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::submitForm()
  2. 10 core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::submitForm()
  3. 11.x core/lib/Drupal/Core/Form/ConfigFormBase.php \Drupal\Core\Form\ConfigFormBase::submitForm()

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.

... See full list

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.

... 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.'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.