You are here

function lingotek_update_9000 in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 4.0.x lingotek.install \lingotek_update_9000()
  2. 3.2.x lingotek.install \lingotek_update_9000()
  3. 3.4.x lingotek.install \lingotek_update_9000()
  4. 3.5.x lingotek.install \lingotek_update_9000()
  5. 3.6.x lingotek.install \lingotek_update_9000()
  6. 3.7.x lingotek.install \lingotek_update_9000()
  7. 3.8.x lingotek.install \lingotek_update_9000()

Adds enable_download_interim preference to lingotek.settings.

File

./lingotek.install, line 138
Install, update and uninstall functions for the Lingotek module.

Code

function lingotek_update_9000() {

  // We converted this to a boolean.
  $lingotekSettings = \Drupal::configFactory()
    ->getEditable('lingotek.settings');
  $preference = $lingotekSettings
    ->get('preference.append_type_to_title', NULL);
  if ($preference === 'global_setting') {
    $lingotekSettings
      ->set('preference.append_type_to_title', TRUE);
    $lingotekSettings
      ->save();
  }
}