public function RavenConfigForm::submitForm in Raven: Sentry Integration 8
Same name and namespace in other branches
- 8.2 src/Form/RavenConfigForm.php \Drupal\raven\Form\RavenConfigForm::submitForm()
- 3.x src/Form/RavenConfigForm.php \Drupal\raven\Form\RavenConfigForm::submitForm()
.
Overrides ConfigFormBase::submitForm
File
- src/
Form/ RavenConfigForm.php, line 103 - Contains \Drupal\raven\Form\RavenConfigForm.
Class
- RavenConfigForm
- Implements a Raven Config form.
Namespace
Drupal\raven\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('raven.settings')
->set('client_key', $form_state
->getValue('client_key'))
->set('fatal_error_handler', $form_state
->getValue('fatal_error_handler'))
->set('fatal_error_handler_memory', $form_state
->getValue('fatal_error_handler_memory'))
->set('log_levels', $form_state
->getValue('log_levels'))
->set('stack', $form_state
->getValue('stack'))
->set('timeout', $form_state
->getValue('timeout'))
->set('trace', $form_state
->getValue('trace'))
->set('javascript_error_handler', $form_state
->getValue('javascript_error_handler'))
->set('public_dsn', $form_state
->getValue('public_dsn'))
->save();
parent::submitForm($form, $form_state);
}