You are here

function adsense_update_8101 in Google AdSense integration 8

Add adsense_managed_defer to module settings.

File

./adsense.install, line 39
Install file of the adsense module.

Code

function adsense_update_8101() {
  $config = \Drupal::configFactory()
    ->getEditable('adsense.settings');
  $config
    ->set('adsense_managed_defer', FALSE);
  $config
    ->save(TRUE);
}