You are here

function siteimprove_update_8101 in Siteimprove 8

Update domain_plugin_id.

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

File

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

Code

function siteimprove_update_8101() {

  // Clear existing domain_plugin_id.
  \Drupal::service('config.factory')
    ->getEditable('siteimprove.settings')
    ->clear('domain_plugin_id')
    ->save();
  $settings = \Drupal::configFactory()
    ->getEditable('siteimprove.settings');
  $settings
    ->set('domain_plugin_id', 'siteimprovedomain_simple');
  $settings
    ->save();
}