Elcodi\Plugin\CustomShippingBundle\Controller\Component\ShippingRangeComponentController::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\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface $carrier, Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface $shippingRange ) : array
$formView Symfony\Component\Form\FormView Form view
$carrier Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Carrier
$shippingRange Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Shipping range
return array Result
    public function editComponentAction(FormView $formView, CarrierInterface $carrier, ShippingRangeInterface $shippingRange)
    {
        return ['shippingRange' => $shippingRange, 'carrier' => $carrier, 'form' => $formView];
    }
ShippingRangeComponentController