Elcodi\Admin\ProductBundle\Controller\Component\ProductComponentController::editComponentAction PHP Method

editComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
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];
    }