function LocaleDefaultOptions::updateOptions

Same name and namespace in other branches
  1. 11.x core/modules/locale/src/LocaleDefaultOptions.php \Drupal\locale\LocaleDefaultOptions::updateOptions()

Returns default import options for translation update.

Return value

array Array of translation import options.

10 calls to LocaleDefaultOptions::updateOptions()
ImportForm::submitForm in core/modules/locale/src/Form/ImportForm.php
Form submission handler.
install_finish_translations in core/includes/install.core.inc
Finishes importing files at end of installation.
LocaleCronHooks::cron in core/modules/locale/src/Hook/LocaleCronHooks.php
Implements hook_cron().
LocaleExtensionHooks::extensionsInstalled in core/modules/locale/src/Hook/LocaleExtensionHooks.php
Implements hook_modules_installed().
LocaleFormHooks::formLanguageAdminAddFormAlterSubmit in core/modules/locale/src/Hook/LocaleFormHooks.php
Form submission handler for language_admin_add_form.

... See full list

File

core/modules/locale/src/LocaleDefaultOptions.php, line 18

Class

LocaleDefaultOptions
Provides the locale default update options.

Namespace

Drupal\locale

Code

public static function updateOptions() : array {
  $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.