PaginatorFactoryInterface
PaginatorFactoryInterface.php
:
14
Interface
Methods¶
createPaginator()
¶
PaginatorFactoryInterface.php
:
31
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $items | iterable<string|int, object> | - |
the items of the requested page only |
| $range | PageRange | - | - |
| $totalItems | int | - | - |
Return values
PaginatorInterface<string|int, object>
getRange()
¶
PaginatorFactoryInterface.php
:
21
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $operation | Operation | - | - |
| $context | array<string, mixed> | [] | - |
Return values
PageRange|null
null when pagination is disabled for the operation, so the provider returns the whole collection