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