Elcodi\Admin\ProductBundle\Controller\Component\PackComponentController::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\PackInterface $pack ) : array
$formView Symfony\Component\Form\FormView Form view
$pack Elcodi\Component\Product\Entity\Interfaces\PackInterface Pack
return array Result
    public function editComponentAction(FormView $formView, PackInterface $pack)
    {
        $useStock = $this->get('elcodi.store')->getUseStock();
        return ['pack' => $pack, 'form' => $formView, 'useStock' => $useStock];
    }