Skip to content

Kirby 4.1.2

$layouts->limit()

Returns a new object with a limited number of elements

$layouts->limit(int $limit): Kirby\Cms\Layouts

Parameters

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

Return type

Kirby\Cms\Layouts

This method does not modify the existing $layouts object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Layouts inherited from Kirby\Toolkit\Collection