If $view's template identifier is a closure, then it is called directly and the result is returned as is.
public renderContentView ( eZ\Publish\Core\MVC\Symfony\View\View $view, array $defaultParams = [] ) : string | ||
$view | eZ\Publish\Core\MVC\Symfony\View\View | |
$defaultParams | array | |
return | string |
protected function handleViewException(Response $response, $params, Exception $e, $viewType, $contentId = null, $locationId = null) { $event = new APIContentExceptionEvent($e, array('contentId' => $contentId, 'locationId' => $locationId, 'viewType' => $viewType)); $this->getEventDispatcher()->dispatch(MVCEvents::API_CONTENT_EXCEPTION, $event); if ($event->hasContentView()) { $response->setContent($this->viewManager->renderContentView($event->getContentView(), $params)); return $response; } throw $e; }