You are here

warmer_cdn.install in Warmer 8

Same filename and directory in other branches
  1. 2.x modules/warmer_cdn/warmer_cdn.install

Install, update and uninstall functions for the Warmer CDN module.

File

modules/warmer_cdn/warmer_cdn.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Warmer CDN module.
 */

/**
 * Init the new verify option.
 */
function warmer_cdn_update_8101() {
  $warmer_config = \Drupal::configFactory()
    ->getEditable('warmer.settings');
  $warmers = $warmer_config
    ->get('warmers');
  if (isset($warmers['cdn'])) {
    $warmers['cdn']['verify'] = TRUE;
  }
  if (isset($warmers['sitemap'])) {
    $warmers['sitemap']['verify'] = TRUE;
  }
  $warmer_config
    ->set('warmers', $warmers);
  $warmer_config
    ->save();
}

Functions

Namesort descending Description
warmer_cdn_update_8101 Init the new verify option.