Elcodi\Admin\BannerBundle\Controller\BannerZoneController::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\Banner\Entity\Interfaces\BannerZoneInterface $entity, Symfony\Component\Form\FormView $formView ) : array
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerZoneInterface Entity
$formView Symfony\Component\Form\FormView Form view
return array Result
    public function editComponentAction(BannerZoneInterface $entity, FormView $formView)
    {
        return ['entity' => $entity, 'form' => $formView];
    }