Converts the special elements data structure back to elements.
array $translation: The already converted data structure.
array The webform elements structure with specially escaped characters replaced.
protected function convertTranslationToElements(array $translation) {
$elements = [];
foreach ($translation as $key => $value) {
$safe_key = strtr($key, array_flip(self::REPLACE_PAIRS));
if (is_array($value)) {
$elements[$safe_key] = $this
->convertTranslationToElements($value);
}
else {
$elements[$safe_key] = $value;
}
}
return $elements;
}