Skip to content

Kirby 6.0.0

$slugField->prev()

Returns the previous item in the collection if available

$slugField->prev(TCollection|null $collection = null): SlugField|null

Parameters

Name Type Default
$collection TCollectionornull null

Return types

Kirby\Form\Field\SlugFieldornull

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

Parent class

Kirby\Form\Field\SlugField inherited from Kirby\Form\Field