$layouts->limit()
Returns a new object with a limited number of elements
$layouts->limit(int $limit): Kirby\Toolkit\Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$limit |
int |
– | The number of elements to return |
Return type
Inherited from
Kirby\Toolkit\Collection