LocaleDefaultOptions.php
Namespace
Drupal\localeFile
-
core/
modules/ locale/ src/ LocaleDefaultOptions.php
View source
<?php
namespace Drupal\locale;
/**
* Provides the locale default update options.
*
* @internal
*/
class LocaleDefaultOptions {
/**
* Returns default import options for translation update.
*
* @return array
* Array of translation import options.
*/
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(),
];
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| LocaleDefaultOptions | Provides the locale default update options. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.