Skip to content

Kirby 5.0.4

$blocksField->prev()

Returns the previous item in the collection if available

$blocksField->prev(TCollection|null $collection = null): Kirby\Form\Field\BlocksField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\BlocksFieldornull

This method does not modify the existing $blocksfield object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Form\Field\BlocksField inherited from Kirby\Form\FieldClass