You are here

function seckit_update_8102 in Security Kit 2.x

Same name and namespace in other branches
  1. 8 seckit.install \seckit_update_8102()

Replace "empty" with an empty string for the Referrer-Policy.

File

./seckit.install, line 20
Install, update and uninstall functions for the seckit module.

Code

function seckit_update_8102() {
  $config = \Drupal::configFactory()
    ->getEditable('seckit.settings');
  if ($config
    ->get('seckit_various.referrer_policy_policy') == 'empty') {
    $config
      ->set('seckit_various.referrer_policy_policy', '""')
      ->save(TRUE);
  }
}