function file_system_settings_submit

Same name in other branches
  1. 11.x core/modules/file/file.module \file_system_settings_submit()

Form submission handler for file system settings form.

1 string reference to 'file_system_settings_submit'
file_form_system_file_system_settings_alter in core/modules/file/file.module
Implements hook_form_FORM_ID_alter().

File

core/modules/file/file.module, line 1510

Code

function file_system_settings_submit(array &$form, FormStateInterface $form_state) {
    $config = \Drupal::configFactory()->getEditable('file.settings')
        ->set('filename_sanitization', $form_state->getValue('filename_sanitization'));
    $config->save();
}

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