Converts a translated data structure.
array $data: The translated data structure.
array Returns a translation array as expected by \Drupal\config_translation\FormElement\ElementInterface::setConfig().
Overrides DefaultConfigProcessor::convertToTranslation
public function convertToTranslation($data) {
$translation = parent::convertToTranslation($data);
if (isset($translation['elements'])) {
$translation['elements'] = Yaml::encode($this
->convertTranslationToElements($translation['elements']));
}
return $translation;
}