function lingotek_update_8222 in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8.2 lingotek.install \lingotek_update_8222()
- 4.0.x lingotek.install \lingotek_update_8222()
- 3.0.x lingotek.install \lingotek_update_8222()
- 3.1.x lingotek.install \lingotek_update_8222()
- 3.2.x lingotek.install \lingotek_update_8222()
- 3.3.x lingotek.install \lingotek_update_8222()
- 3.4.x lingotek.install \lingotek_update_8222()
- 3.5.x lingotek.install \lingotek_update_8222()
- 3.6.x lingotek.install \lingotek_update_8222()
- 3.7.x lingotek.install \lingotek_update_8222()
Adds enable_download_interim preference to lingotek.settings.
File
- ./
lingotek.install, line 135 - Install, update and uninstall functions for the lingotek module.
Code
function lingotek_update_8222() {
// Default will be FALSE, but as we want to maintain the current behavior we
// set this to TRUE.
$lingotekSettings = \Drupal::configFactory()
->getEditable('lingotek.settings');
$lingotekSettings
->set('preference.enable_download_interim', TRUE);
$lingotekSettings
->save();
}