function syslog_logging_settings_submit
Same name in other branches
- 8.9.x core/modules/syslog/syslog.module \syslog_logging_settings_submit()
- 10 core/modules/syslog/syslog.module \syslog_logging_settings_submit()
- 11.x core/modules/syslog/syslog.module \syslog_logging_settings_submit()
Form submission handler for system_logging_settings().
See also
syslog_form_system_logging_settings_alter()
1 string reference to 'syslog_logging_settings_submit'
- syslog_form_system_logging_settings_alter in core/
modules/ syslog/ syslog.module - Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ syslog/ syslog.module, line 70
Code
function syslog_logging_settings_submit($form, FormStateInterface $form_state) {
\Drupal::configFactory()->getEditable('syslog.settings')
->set('identity', $form_state->getValue('syslog_identity'))
->set('facility', $form_state->getValue('syslog_facility'))
->set('format', $form_state->getValue('syslog_format'))
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.