eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::viewAction PHP Method

viewAction() public method

It doesn't do anything by itself: the returned View object is rendered by the ViewRendererListener into an HttpFoundation Response. This action can be selectively replaced by a custom action by means of content_view configuration. Custom actions can add parameters to the view and customize the Response the View will be converted to. They may also bypass the ViewRenderer by returning an HttpFoundation Response. Cache is in both cases handled by the CacheViewResponseListener.
public viewAction ( ContentView $view ) : ContentView
$view eZ\Publish\Core\MVC\Symfony\View\ContentView
return eZ\Publish\Core\MVC\Symfony\View\ContentView
    public function viewAction(ContentView $view)
    {
        return $view;
    }