Skip to content

Kirby 5.0.4

$file->prevAll()

Returns the beginning of the collection before the current item

$file->prevAll(Kirby\Cms\Files|null $collection = null): Kirby\Cms\Files

Parameters

Name Type Default
$collection Kirby\Cms\Filesornull null

Return type

Kirby\Cms\Files

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

Parent class

Kirby\Cms\File