Elcodi\Admin\AttributeBundle\Controller\Component\AttributeComponentController::listComponentAction PHP Метод

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

As a component, this action should not return all the html macro, but only the specific component
public listComponentAction ( Doctrine\ORM\Tools\Pagination\Paginator $paginator, Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes $paginatorAttributes, integer $page, integer $limit ) : array
$paginator Doctrine\ORM\Tools\Pagination\Paginator Paginator instance
$paginatorAttributes Mmoreram\ControllerExtraBundle\ValueObject\PaginatorAttributes Paginator attributes
$page integer Page
$limit integer Limit of items per page
Результат array Result
    public function listComponentAction(Paginator $paginator, PaginatorAttributes $paginatorAttributes, $page, $limit)
    {
        return ['paginator' => $paginator, 'page' => $page, 'limit' => $limit, 'totalPages' => $paginatorAttributes->getTotalPages(), 'totalElements' => $paginatorAttributes->getTotalElements()];
    }