Elcodi\Admin\LanguageBundle\Controller\Components\LanguageComponentController::listComponentAction PHP Method

listComponentAction() public method

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( ) : array
return array Result
    public function listComponentAction()
    {
        $languages = $this->get('elcodi.repository.language')->findBy([], ['enabled' => 'DESC', 'iso' => 'ASC']);
        return ['paginator' => $languages];
    }
LanguageComponentController