Skip to content

Kirby 5.1.3

$hasSiblings->prevAll()

Returns the beginning of the collection before the current item

$hasSiblings->prevAll(Kirby\Toolkit\Collection|null $collection = null): Kirby\Toolkit\Collection

Parameters

Name Type Default
$collection Kirby\Toolkit\Collectionornull null

Return type

Kirby\Toolkit\Collection

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

Parent class

Kirby\Cms\HasSiblings