private function ConfigImportSettingsForm::getInterfaceTranslationOverwriteOptions in Locale: Config import 8
Helper function to get the options for overwrite_interface_translation
1 call to ConfigImportSettingsForm::getInterfaceTranslationOverwriteOptions()
- ConfigImportSettingsForm::buildForm in src/
Form/ ConfigImportSettingsForm.php - Form constructor.
File
- src/
Form/ ConfigImportSettingsForm.php, line 57
Class
- ConfigImportSettingsForm
- Configure the behaviour of interface translations on config import.
Namespace
Drupal\config_import_locale\FormCode
private function getInterfaceTranslationOverwriteOptions() {
return [
'default' => $this
->t('<b>Default:</b> Interface translations may be overwritten if the string is imported via config import'),
'no_overwrite' => $this
->t('<b>No overwrites:</b> Existing interface translations will be kept, new translations may be added'),
'nothing' => $this
->t('<b>Nothing:</b> Config imports will never add / change any interface translations'),
];
}