Elcodi\Admin\PageBundle\Controller\Component\BlogPostComponentController::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\Component\Page\Entity\Interfaces\PageInterface $blogPost ) : array
$formView Symfony\Component\Form\FormView Form view
$blogPost Elcodi\Component\Page\Entity\Interfaces\PageInterface Page
return array Result
    public function editComponentAction(FormView $formView, PageInterface $blogPost)
    {
        return ['blog_post' => $blogPost, 'form' => $formView];
    }