Skip to content

$blocks->limit()

Returns a new object with a limited number of elements

$blocks->limit(int $limit): Kirby\Toolkit\Collection

Parameters

Name Type Default Description
$limit * int The number of elements to return

Return type

Kirby\Toolkit\Collection

Parent class

Kirby\Cms\Blocks inherited from Kirby\Toolkit\Collection