You are here

function lingotek_update_8222 in Lingotek Translation 3.0.x

Same name and namespace in other branches
  1. 8.2 lingotek.install \lingotek_update_8222()
  2. 4.0.x lingotek.install \lingotek_update_8222()
  3. 3.1.x lingotek.install \lingotek_update_8222()
  4. 3.2.x lingotek.install \lingotek_update_8222()
  5. 3.3.x lingotek.install \lingotek_update_8222()
  6. 3.4.x lingotek.install \lingotek_update_8222()
  7. 3.5.x lingotek.install \lingotek_update_8222()
  8. 3.6.x lingotek.install \lingotek_update_8222()
  9. 3.7.x lingotek.install \lingotek_update_8222()
  10. 3.8.x lingotek.install \lingotek_update_8222()

Adds enable_download_interim preference to lingotek.settings.

File

./lingotek.install, line 127
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();
}