Skip to content

Kirby 5.1.2

$assets->limit()

Returns a new object with a limited number of elements

$assets->limit(int $limit): Kirby\Plugin\Assets

Parameters

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

Return type

Kirby\Plugin\Assets

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

Parent class

Kirby\Plugin\Assets inherited from Kirby\Toolkit\Collection