PaginatedListDataProviderInterface

interface \TYPO3\CMS\Dashboard\Widgets\PaginatedListDataProviderInterface

The data provider of a ListWidget can implement this interface instead of {@see ListDataProviderInterface} to let the widget render a paginator.

Table of Contents

Methods

getPaginator()  : PaginatorInterface
Return a paginator for the requested page, showing the given number of items per page.

Methods

getPaginator()

Return a paginator for the requested page, showing the given number of items per page.

public getPaginator(int $currentPage, int $itemsPerPage) : PaginatorInterface

The number of items per page is configured in the widget and can be changed by editors. The paginator corrects page numbers that exceed the number of available pages.

Parameters

$currentPage : int
$itemsPerPage : int

Return values

PaginatorInterface
On this page