Skip to content

Kirby 6.0.0

$item->prevAll()

Returns the beginning of the collection before the current item

$item->prevAll(Items|null $collection = null): Items

Parameters

Name Type Default
$collection Kirby\Cms\Itemsornull null

Return type

Kirby\Cms\Items

Parent class

Kirby\Cms\Item