Elcodi\Admin\BannerBundle\Controller\BannerController::viewComponentAction PHP Method

viewComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public viewComponentAction ( Elcodi\Component\Banner\Entity\Interfaces\BannerInterface $entity ) : array
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity to view
return array Result
    public function viewComponentAction(BannerInterface $entity)
    {
        return ['entity' => $entity];
    }