Skip to content

Kirby 6.0.0

$block->prevAll()

Returns the beginning of the collection before the current item

$block->prevAll(Blocks|null $collection = null): Blocks

Parameters

Name Type Default
$collection Kirby\Cms\Blocksornull null

Return type

Kirby\Cms\Blocks

Parent class

Kirby\Cms\Block inherited from Kirby\Cms\Item