function redirect_update_8106 in Redirect 8
Removes unnecessary settings from storage.
File
- ./
redirect.install, line 187 - Update hooks for the Redirect module.
Code
function redirect_update_8106() {
$config = \Drupal::configFactory()
->getEditable('redirect.settings');
$config
->set('route_normalizer_enabled', $config
->get('normalize_aliases'));
$config
->clear('term_path_handler');
$config
->clear('normalize_aliases');
$config
->clear('deslash');
$config
->clear('frontpage_redirect');
$config
->clear('nonclean_to_clean');
$config
->save();
}