Elcodi\Admin\BannerBundle\Controller\BannerController::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\BannerInterface $entity ) : array
$entity Elcodi\Component\Banner\Entity\Interfaces\BannerInterface Entity to view
Результат array Result
    public function viewComponentAction(BannerInterface $entity)
    {
        return ['entity' => $entity];
    }