Commit b9935bef authored by jrockowitz's avatar jrockowitz Committed by jrockowitz

Issue #3001704 by jrockowitz: Make submission view easier to alter / theme

parent 0ff1f6e2
......@@ -185,7 +185,7 @@ class WebformSubmissionViewBuilder extends EntityViewBuilder implements WebformS
$title = $element['#admin_title'] ?: $element['#title'] ?: '(' . $key . ')';
$html = $webform_element->formatHtml($element, $webform_submission, $options);
$rows[] = [
$rows[$key] = [
['header' => TRUE, 'data' => $title],
['data' => (is_string($html)) ? ['#markup' => $html] : $html],
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment