Skip to content

Kirby 5.1.1

$block->prevAll()

Returns the beginning of the collection before the current item

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

Parameters

Name Type Default
$collection Kirby\Cms\Blocksornull null

Return type

Kirby\Cms\Blocks

This method modifies the existing $block object it is applied to and returns it again.

Parent class

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