You are here

function seckit_update_8102 in Security Kit 8

Same name and namespace in other branches
  1. 2.x 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);
  }
}