$productList->chunk()
Splits the collection into chunks of the same size. Returns a new collection with an element for each chunk and a sub collection in each chunk. The last chunk may be smaller.
$productList->chunk(int $size): Kirby\Toolkit\Collection
Parameters
| Name | Type | Default |
|---|---|---|
$size |
int |
- |
Return type
Parent class
Wagnerwagner\Merx\ProductList inherited from Kirby\Toolkit\Collection