You are here

function redirect_update_8108 in Redirect 8

Removes unnecessary settings.

File

./redirect.install, line 219
Update hooks for the Redirect module.

Code

function redirect_update_8108() {
  $config = \Drupal::configFactory()
    ->getEditable('redirect.settings');
  $config
    ->clear('canonical');
  $config
    ->clear('content_location_header');
  $config
    ->save();
}