You are here

public function WebformAdminConfigBaseForm::submitForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/AdminConfig/WebformAdminConfigBaseForm.php \Drupal\webform\Form\AdminConfig\WebformAdminConfigBaseForm::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

8 calls to WebformAdminConfigBaseForm::submitForm()
WebformAdminConfigAdvancedForm::submitForm in src/Form/AdminConfig/WebformAdminConfigAdvancedForm.php
Form submission handler.
WebformAdminConfigElementsForm::submitForm in src/Form/AdminConfig/WebformAdminConfigElementsForm.php
Form submission handler.
WebformAdminConfigExportersForm::submitForm in src/Form/AdminConfig/WebformAdminConfigExportersForm.php
Form submission handler.
WebformAdminConfigFormsForm::submitForm in src/Form/AdminConfig/WebformAdminConfigFormsForm.php
Form submission handler.
WebformAdminConfigHandlersForm::submitForm in src/Form/AdminConfig/WebformAdminConfigHandlersForm.php
Form submission handler.

... See full list

8 methods override WebformAdminConfigBaseForm::submitForm()
WebformAdminConfigAdvancedForm::submitForm in src/Form/AdminConfig/WebformAdminConfigAdvancedForm.php
Form submission handler.
WebformAdminConfigElementsForm::submitForm in src/Form/AdminConfig/WebformAdminConfigElementsForm.php
Form submission handler.
WebformAdminConfigExportersForm::submitForm in src/Form/AdminConfig/WebformAdminConfigExportersForm.php
Form submission handler.
WebformAdminConfigFormsForm::submitForm in src/Form/AdminConfig/WebformAdminConfigFormsForm.php
Form submission handler.
WebformAdminConfigHandlersForm::submitForm in src/Form/AdminConfig/WebformAdminConfigHandlersForm.php
Form submission handler.

... See full list

File

src/Form/AdminConfig/WebformAdminConfigBaseForm.php, line 29

Class

WebformAdminConfigBaseForm
Base webform admin settings form.

Namespace

Drupal\webform\Form\AdminConfig

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('webform.settings');
  _webform_config_update($config);
  $config
    ->save();
  parent::submitForm($form, $form_state);
}