public static function RavenConfigForm::submitForm in Raven: Sentry Integration 3.x
Same name and namespace in other branches
- 8.2 src/Form/RavenConfigForm.php \Drupal\raven\Form\RavenConfigForm::submitForm()
- 8 src/Form/RavenConfigForm.php \Drupal\raven\Form\RavenConfigForm::submitForm()
Submits Raven config form.
File
- src/
Form/ RavenConfigForm.php, line 188
Class
- RavenConfigForm
- Implements a Raven Config form.
Namespace
Drupal\raven\FormCode
public static function submitForm(array &$form, FormStateInterface $form_state) {
\Drupal::configFactory()
->getEditable('raven.settings')
->set('client_key', $form_state
->getValue([
'raven',
'php',
'client_key',
]))
->set('fatal_error_handler', $form_state
->getValue([
'raven',
'php',
'fatal_error_handler',
]))
->set('drush_error_handler', $form_state
->getValue([
'raven',
'php',
'drush_error_handler',
]))
->set('log_levels', $form_state
->getValue([
'raven',
'php',
'log_levels',
]))
->set('stack', $form_state
->getValue([
'raven',
'php',
'stack',
]))
->set('trace', $form_state
->getValue([
'raven',
'php',
'trace',
]))
->set('send_user_data', $form_state
->getValue([
'raven',
'php',
'send_user_data',
]))
->set('send_request_body', $form_state
->getValue([
'raven',
'php',
'send_request_body',
]))
->set('rate_limit', $form_state
->getValue([
'raven',
'php',
'rate_limit',
]))
->set('request_tracing', $form_state
->getValue([
'raven',
'php',
'performance',
'request_tracing',
]))
->set('database_tracing', $form_state
->getValue([
'raven',
'php',
'performance',
'database_tracing',
]))
->set('twig_tracing', $form_state
->getValue([
'raven',
'php',
'performance',
'twig_tracing',
]))
->set('traces_sample_rate', $form_state
->getValue([
'raven',
'php',
'performance',
'traces_sample_rate',
]))
->set('ignored_channels', array_map('trim', preg_split('/\\R/', $form_state
->getValue([
'raven',
'php',
'ignored_channels',
]), -1, PREG_SPLIT_NO_EMPTY)))
->set('javascript_error_handler', $form_state
->getValue([
'raven',
'js',
'javascript_error_handler',
]))
->set('public_dsn', $form_state
->getValue([
'raven',
'js',
'public_dsn',
]))
->set('browser_traces_sample_rate', $form_state
->getValue([
'raven',
'js',
'browser_traces_sample_rate',
]))
->set('auto_session_tracking', $form_state
->getValue([
'raven',
'js',
'auto_session_tracking',
]))
->set('send_client_reports', $form_state
->getValue([
'raven',
'js',
'send_client_reports',
]))
->set('environment', $form_state
->getValue([
'raven',
'environment',
]))
->set('release', $form_state
->getValue([
'raven',
'release',
]))
->save();
}