Commit e2c30c93 authored by Crell's avatar Crell Committed by effulgentsia

Adjust ViewSubscriber's subrequest handling again for render API.

parent 67fdbebd
......@@ -63,8 +63,13 @@ public function onView(GetResponseForControllerResultEvent $event) {
}
}
else {
$page_callback_result = $event->getControllerResult();
$event->setResponse(new Response(drupal_render($page_callback_result)));
$page_result = $event->getControllerResult();
if (!is_array($page_result)) {
$page_result = array(
'#markup' => $page_result,
);
}
$event->setResponse(new Response(drupal_render($page_result)));
}
}
......
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