Skip to content

Kirby 3.9.8

$arguments->limit()

Returns a new object with a limited number of elements

$arguments->limit(int $limit): Kirby\Query\Arguments

Parameters

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

Return type

Kirby\Query\Arguments

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

Parent class

Kirby\Query\Arguments inherited from Kirby\Toolkit\Collection