// @see \Drupal\config_translation\FormElement\FormElementBase::getElements()
$form['config_names'
] =
['#type' => 'container'
];
foreach ($this->mapper->
getConfigNames() as $name) { $form['config_names'
][$name] =
['#type' => 'container'
];
$schema =
$this->typedConfigManager->
get($name);
$source_config =
$this->baseConfigData
[$name];
$translation_config =
$this->
configFactory()->
get($name)->
get();
if ($form_element =
$this->
createFormElement($schema)) { $parents =
['config_names',
$name];
$form['config_names'
][$name] +=
$form_element->
getTranslationBuild($this->sourceLanguage,
$this->language,
$source_config,
$translation_config,
$parents);
} } $form['actions'
]['#type'
] = 'actions';
$form['actions'
]['submit'
] =
[ '#type' => 'submit',
'#value' =>
$this->
t('Save translation'
),
'#button_type' => 'primary',
];
// Set the configuration language back.