function _locale_translation_default_update_options

Same name and namespace in other branches
  1. 10 core/modules/locale/locale.translation.inc \_locale_translation_default_update_options()
  2. 11.x core/modules/locale/locale.translation.inc \_locale_translation_default_update_options()
  3. 9 core/modules/locale/locale.translation.inc \_locale_translation_default_update_options()
  4. 8.9.x core/modules/locale/locale.translation.inc \_locale_translation_default_update_options()

Returns default import options for translation update.

Return value

array Array of translation import options.

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

See also

https://www.drupal.org/node/3569330

File

core/modules/locale/locale.translation.inc, line 390

Code

function _locale_translation_default_update_options() {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3569330', E_USER_DEPRECATED);
  $config = \Drupal::config('locale.settings');
  return [
    'customized' => LOCALE_NOT_CUSTOMIZED,
    'overwrite_options' => [
      'not_customized' => $config->get('translation.overwrite_not_customized'),
      'customized' => $config->get('translation.overwrite_customized'),
    ],
    'finish_feedback' => TRUE,
    'use_remote' => locale_translation_use_remote_source(),
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.