public function TmgmtExtensionSuitSettingsForm::submitForm in TMGMT Extension Suite 8
Same name and namespace in other branches
- 8.3 src/Form/TmgmtExtensionSuitSettingsForm.php \Drupal\tmgmt_extension_suit\Form\TmgmtExtensionSuitSettingsForm::submitForm()
- 8.2 src/Form/TmgmtExtensionSuitSettingsForm.php \Drupal\tmgmt_extension_suit\Form\TmgmtExtensionSuitSettingsForm::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
File
- src/
Form/ TmgmtExtensionSuitSettingsForm.php, line 72
Class
- TmgmtExtensionSuitSettingsForm
- TMGMT Extension Suit settings form.
Namespace
Drupal\tmgmt_extension_suit\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('tmgmt_extension_suit.settings');
$config
->set('do_track_changes', $form_state
->getValue('do_track_changes'));
$config
->save();
parent::submitForm($form, $form_state);
}