function syslog_logging_settings_submit

Same name and namespace in other branches
  1. 11.x core/modules/syslog/syslog.module \syslog_logging_settings_submit()
  2. 10 core/modules/syslog/syslog.module \syslog_logging_settings_submit()
  3. 9 core/modules/syslog/syslog.module \syslog_logging_settings_submit()
  4. 8.9.x core/modules/syslog/syslog.module \syslog_logging_settings_submit()

Form submission handler for system_logging_settings().

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

See also

https://www.drupal.org/node/3566774

File

core/modules/syslog/syslog.module, line 17

Code

function syslog_logging_settings_submit($form, FormStateInterface $form_state) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
  \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.