8.5.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.0.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.1.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.2.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.3.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.4.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)
8.6.x ConfigFormBase.php ConfigFormBase::submitForm(array &$form, FormStateInterface $form_state)

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

30 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) {
  drupal_set_message($this
    ->t('The configuration options have been saved.'));
}