Don't render subrequest as a full page, just pass them through normal drupal_render().

8.0.x
Larry Garfield 2012-09-12 22:49:00 -05:00 committed by effulgentsia
parent 8504d42979
commit 67fdbebdaf
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ class ViewSubscriber implements EventSubscriberInterface {
} }
} }
else { else {
$event->setResponse($this->onHtml($event)); $page_callback_result = $event->getControllerResult();
$event->setResponse(new Response(drupal_render($page_callback_result)));
} }
} }