You are here

function tmgmt_smartling_log_settings_logging_settings_submit in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 modules/tmgmt_smartling_log_settings/tmgmt_smartling_log_settings.module \tmgmt_smartling_log_settings_logging_settings_submit()

Form submission handler for system_logging_settings().

See also

tmgmt_smartling_log_settings_form_system_logging_settings_alter()

1 string reference to 'tmgmt_smartling_log_settings_logging_settings_submit'
tmgmt_smartling_log_settings_form_system_logging_settings_alter in modules/tmgmt_smartling_log_settings/tmgmt_smartling_log_settings.module
Implements hook_form_FORM_ID_alter().

File

modules/tmgmt_smartling_log_settings/tmgmt_smartling_log_settings.module, line 70

Code

function tmgmt_smartling_log_settings_logging_settings_submit($form, FormStateInterface $form_state) {
  \Drupal::configFactory()
    ->getEditable('tmgmt_smartling_log_settings.settings')
    ->set('severity_mapping', $form_state
    ->getValue('tmgmt_smartling_log_settings_severity_mapping'))
    ->save();
}