You are here

function siteimprove_update_8102 in Siteimprove 8

Update settings.

1 call to siteimprove_update_8102()
siteimprove_install in ./siteimprove.install
Implements hook_install().

File

./siteimprove.install, line 43
Install file for the siteimprove module.

Code

function siteimprove_update_8102() {
  $settings = \Drupal::configFactory()
    ->getEditable('siteimprove.settings');
  $settings
    ->set('prepublish_enabled', false);
  $settings
    ->set('api_username', '');
  $settings
    ->set('api_key', '');
  $settings
    ->set('enabled_content_types', []);
  $settings
    ->set('enabled_taxonomies', []);
  $settings
    ->save();
}