public function SettingsForm::submitForm in Salesforce Suite 8.3
Same name in this branch
- 8.3 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::submitForm()
- 8.3 modules/salesforce_logger/src/Form/SettingsForm.php \Drupal\salesforce_logger\Form\SettingsForm::submitForm()
- 8.3 modules/salesforce_encrypt/src/Form/SettingsForm.php \Drupal\salesforce_encrypt\Form\SettingsForm::submitForm()
Same name and namespace in other branches
- 8.4 modules/salesforce_logger/src/Form/SettingsForm.php \Drupal\salesforce_logger\Form\SettingsForm::submitForm()
- 5.0.x modules/salesforce_logger/src/Form/SettingsForm.php \Drupal\salesforce_logger\Form\SettingsForm::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
- modules/
salesforce_logger/ src/ Form/ SettingsForm.php, line 54
Class
- SettingsForm
- Creates authorization form for Salesforce.
Namespace
Drupal\salesforce_logger\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('salesforce_logger.settings');
$config
->set('log_level', $form_state
->getValue('log_level'));
$config
->save();
parent::submitForm($form, $form_state);
}