function file_system_settings_submit
Same name in other branches
- 10 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'
- FileHooks::formSystemFileSystemSettingsAlter in core/
modules/ file/ src/ Hook/ FileHooks.php - Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ file/ file.module, line 762
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.