You are here

function logs_http_update_8001 in Logs HTTP 8

Handle uuid config name renaming.

File

./logs_http.install, line 20
Uninstall function for the Logs HTTP module.

Code

function logs_http_update_8001() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('logs_http.settings');
  $config
    ->set('environment_uuid', $config
    ->get('uuid'));
  $config
    ->save(TRUE);
}