Elcodi\Admin\BannerBundle\Controller\BannerZoneController::viewComponentAction PHP Метод

viewComponentAction() публичный Метод

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
Результат array Result
    public function viewComponentAction(BannerZoneInterface $entity)
    {
        return ['entity' => $entity];
    }