Skip to content

Kirby 5.0.4

$field->prevAll()

Returns the beginning of the collection before the current item

$field->prevAll(Kirby\Form\Fields|null $collection = null): Kirby\Form\Fields

Parameters

Name Type Default
$collection Kirby\Form\Fieldsornull null

Return type

Kirby\Form\Fields

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

Parent class

Kirby\Form\Field