Elcodi\Admin\PageBundle\Controller\Component\EmailComponentController::listComponentAction PHP Метод

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

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( ) : array
Результат array Result
    public function listComponentAction()
    {
        $emails = $this->get('elcodi.repository.page')->findBy(['enabled' => true, 'type' => ElcodiPageTypes::TYPE_EMAIL]);
        return ['paginator' => $emails];
    }