Sonata\ProductBundle\Controller\ProductController::renderFormBasketElementAction PHP Method

renderFormBasketElementAction() public method

public renderFormBasketElementAction ( Symfony\Component\Form\FormView $formView, Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
$formView Symfony\Component\Form\FormView
$basketElement Sonata\Component\Basket\BasketElementInterface
$basket Sonata\Component\Basket\BasketInterface
return Symfony\Component\HttpFoundation\Response
    public function renderFormBasketElementAction(FormView $formView, BasketElementInterface $basketElement, BasketInterface $basket)
    {
        $action = sprintf('%s:renderFormBasketElement', $basketElement->getProductProvider()->getBaseControllerName());
        $response = $this->forward($action, array('formView' => $formView, 'basketElement' => $basketElement, 'basket' => $basket));
        if ($this->get('kernel')->isDebug()) {
            $response->setContent(sprintf("\n<!-- [Sonata] Product code: %s, id: %s, action: %s -->\n%s\n<!-- [Sonata] end product -->\n", $basketElement->getProductCode(), $basketElement->getProductId(), $action, $response->getContent()));
        }
        return $response;
    }