public editComponentAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Product\Entity\Interfaces\ProductInterface $product ) : array | ||
$formView | Symfony\Component\Form\FormView | Form view |
$product | Elcodi\Component\Product\Entity\Interfaces\ProductInterface | Product |
return | array | Result |
public function editComponentAction(FormView $formView, ProductInterface $product)
{
$useStock = $this->get('elcodi.store')->getUseStock();
return ['product' => $product, 'form' => $formView, 'useStock' => $useStock];
}