Skip to content
Snippets Groups Projects
Commit 7ed8c4b9 authored by Mikael Meulle's avatar Mikael Meulle
Browse files

Issue #3465262 by just_like_good_vibes: Incorect rendering of data in views-related sources

parent 37283993
No related branches found
No related tags found
1 merge request!162fix rendering bug in view sources
Pipeline #240787 passed with warnings
......@@ -111,12 +111,14 @@ abstract class ViewsSourceBase extends SourcePluginBase {
if (empty($output)) {
return ['#markup' => ''];
}
// Value needs to be render array so slots can handle multiple sources.
// We use #children to avoir filtering.
if ($output instanceof MarkupInterface) {
return ['#markup' => $output->__toString()];
return [
'#children' => (string) $output,
];
}
if (is_scalar($output)) {
return ['#markup' => $output];
return ['#children' => $output];
}
return $output;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment