Skip to content

Kirby 6.0.0

$areas->limit()

Returns a new object with a limited number of elements

$areas->limit(int $limit): Areas

Parameters

Name Type Default Description
$limitrequired int no default value The number of elements to return

Return type

Kirby\Panel\Areas

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

Parent class

Kirby\Panel\Areas inherited from Kirby\Toolkit\Collection