function lingotek_post_update_delete_sandbox_host_settings in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
- 3.5.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
- 3.7.x lingotek.post_update.php \lingotek_post_update_delete_sandbox_host_settings()
- 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();
}