PHP Class Sonata\ProductBundle\Controller\BaseProductController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
renderFinalReviewBasketElementAction ( Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
renderFormBasketElementAction ( Symfony\Component\Form\FormView $formView, Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
renderPropertiesAction ( Sonata\Component\Product\ProductInterface $product ) : Response Renders product properties.
variationToProductAction ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Product\ProductInterface $variation = null ) : Symfony\Component\HttpFoundation\JsonResponse | RedirectResponse
viewAction ( $product ) : Response
viewVariationsAction ( $product ) : Response

Protected Methods

Method Description
updateSeoMeta ( Sonata\Component\Product\ProductInterface $product, string | null $currency = null )

Method Details

renderFinalReviewBasketElementAction() public method

public renderFinalReviewBasketElementAction ( Sonata\Component\Basket\BasketElementInterface $basketElement, Sonata\Component\Basket\BasketInterface $basket ) : Response
$basketElement Sonata\Component\Basket\BasketElementInterface
$basket Sonata\Component\Basket\BasketInterface
return Symfony\Component\HttpFoundation\Response

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

renderPropertiesAction() public method

Renders product properties.
public renderPropertiesAction ( Sonata\Component\Product\ProductInterface $product ) : Response
$product Sonata\Component\Product\ProductInterface
return Symfony\Component\HttpFoundation\Response

updateSeoMeta() protected method

protected updateSeoMeta ( Sonata\Component\Product\ProductInterface $product, string | null $currency = null )
$product Sonata\Component\Product\ProductInterface
$currency string | null

variationToProductAction() public method

public variationToProductAction ( Sonata\Component\Product\ProductInterface $product, Sonata\Component\Product\ProductInterface $variation = null ) : Symfony\Component\HttpFoundation\JsonResponse | RedirectResponse
$product Sonata\Component\Product\ProductInterface
$variation Sonata\Component\Product\ProductInterface
return Symfony\Component\HttpFoundation\JsonResponse | Symfony\Component\HttpFoundation\RedirectResponse

viewAction() public method

public viewAction ( $product ) : Response
$product
return Symfony\Component\HttpFoundation\Response

viewVariationsAction() public method

public viewVariationsAction ( $product ) : Response
$product
return Symfony\Component\HttpFoundation\Response