Skip to content

Kirby 5.0.2

$fieldClass->hasPrev()

Checks if there's a previous item in the collection

$fieldClass->hasPrev(Kirby\Form\Fields|null $collection = null): bool

Parameters

Name Type Default
$collection Kirby\Form\Fieldsornull null

Return type

bool

Parent class

Kirby\Form\FieldClass