Elcodi\Admin\CouponBundle\Controller\Component\CouponComponentController::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 ( Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface $coupon, Symfony\Component\Form\FormView $formView ) : array
$coupon Elcodi\Component\Coupon\Entity\Interfaces\CouponInterface Entity
$formView Symfony\Component\Form\FormView Form view
return array Result
    public function editComponentAction(CouponInterface $coupon, FormView $formView)
    {
        return ['coupon' => $coupon, 'form' => $formView];
    }