You are here

function lingotek_post_update_delete_sandbox_host_settings in Lingotek Translation 3.5.x

Same name and namespace in other branches
  1. 4.0.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
  2. 3.6.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
  3. 3.7.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
  4. 3.8.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()

Remove obsolete Lingotek account configuration.

File

./lingotek.post_update.php, line 32
Post update functions for Lingotek.

Code

function lingotek_post_update_delete_sandbox_host_settings() {
  \Drupal::configFactory()
    ->getEditable('lingotek.settings')
    ->clear('account.use_production')
    ->clear('account.sandbox_host')
    ->save();
}