bundles/BlockManagerBundle/Controller/Controller.php
protected function buildView(
        $value,
        string $context = ViewInterface::CONTEXT_DEFAULT,
        array $parameters = [],
        ?Response $response = null
    ): ViewInterface {
        /** @var \Netgen\BlockManager\View\ViewBuilderInterface $viewBuilder */
        $viewBuilder = $this->get('netgen_block_manager.view.view_builder');
        $view = $viewBuilder->buildView($value, $context, $parameters);

        $view->setResponse($response instanceof Response ? $response : new Response());

        return $view;
    }
protected function buildView(
        $value,
        string $context = ViewInterface::CONTEXT_DEFAULT,
        array $parameters = [],
        ?Response $response = null
    ): ViewInterface {
        /** @var \Netgen\BlockManager\View\ViewBuilderInterface $viewBuilder */
        $viewBuilder = $this->get('netgen_block_manager.view.view_builder');
        $view = $viewBuilder->buildView($value, $context, $parameters);

        $view->setResponse($response instanceof Response ? $response : new Response());

        return $view;
    }
protected function buildView ( $ value , string $ context = ViewInterface :: CONTEXT_DEFAULT , array $ parameters = [ ] , ? Response $ response = null ) : ViewInterface { /** @var \Netgen\BlockManager\View\ViewBuilderInterface $viewBuilder */ $ viewBuilder = $ this -> get ( 'netgen_block_manager.view.view_builder' ) ; $ view = $ viewBuilder -> buildView ( $ value , $ context , $ parameters ) ; $ view -> setResponse ( $ response instanceof Response ? $ response : new Response ( ) ) ; return $ view ; }
Builds the view from provided value.

@param mixed $value
@param string $context
@param array<string, mixed> $parameters
@param \Symfony\Component\HttpFoundation\Response $response

@return \Netgen\BlockManager\View\ViewInterface
Builds the view from provided value .