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