Elcodi\Plugin\CustomShippingBundle\Controller\Component\CarrierComponentController::listComponentAction PHP Method

listComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( ) : array
return array Result
    public function listComponentAction()
    {
        $carriers = $this->get('elcodi.repository.carrier')->findAll();
        return ['paginator' => $carriers];
    }