Skip to content
Snippets Groups Projects
Commit 93f67aa7 authored by Scott Hollenbeck's avatar Scott Hollenbeck Committed by Jonathan Sacksick
Browse files

Issue #3394359 by sah62, Liliplanet: User error: "funding_source" is an invalid render array key.

parent e04f61c1
No related branches found
Tags 8.x-3.0-alpha6
No related merge requests found
......@@ -337,7 +337,9 @@ function commerce_paypal_preprocess_commerce_order(&$variables) {
// If we found a funding source, add its label to the template variables.
if (!empty($data['funding_source'])) {
$variables['order']['funding_source'] = commerce_paypal_funding_source_label($data['funding_source']);
$variables['order']['funding_source'] = [
'#markup' => commerce_paypal_funding_source_label($data['funding_source']),
];
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment