function dblog_logging_settings_submit

Same name in other branches
  1. 8.9.x core/modules/dblog/dblog.module \dblog_logging_settings_submit()

Form submission handler for system_logging_settings().

See also

dblog_form_system_logging_settings_alter()

1 string reference to 'dblog_logging_settings_submit'
dblog_form_system_logging_settings_alter in core/modules/dblog/dblog.module
Implements hook_form_FORM_ID_alter() for system_logging_settings().

File

core/modules/dblog/dblog.module, line 120

Code

function dblog_logging_settings_submit($form, FormStateInterface $form_state) {
    \Drupal::configFactory()->getEditable('dblog.settings')
        ->set('row_limit', $form_state->getValue('dblog_row_limit'))
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.