Elcodi\Plugin\CustomShippingBundle\Controller\Component\CarrierComponentController::editComponentAction PHP Метод

editComponentAction() публичный Метод

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 ) : array
$formView Symfony\Component\Form\FormView Form view
$carrier Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\CarrierInterface Shipping range
Результат array Result
    public function editComponentAction(FormView $formView, CarrierInterface $carrier)
    {
        return ['carrier' => $carrier, 'form' => $formView];
    }