Skip to content

Kirby 6.0.0

$tabs->limit()

Returns a new object with a limited number of elements

$tabs->limit(int $limit): Tabs

Parameters

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

Return type

Kirby\Blueprint\Tabs

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

Parent class

Kirby\Blueprint\Tabs inherited from Kirby\Toolkit\Collection