Skip to content

Kirby 5.0.4

$layoutField->submit()

Submits a new value for the field. Fields can overwrite this method to provide custom submit logic. This is useful if the field component sends data that needs to be processed before being stored.

$layoutField->submit(mixed $value): Kirby\Form\Field\LayoutField

Parameters

Name Type Default
$valuerequired mixed no default value

Return type

Kirby\Form\Field\LayoutField

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

Parent class

Kirby\Form\Field\LayoutField inherited from Kirby\Form\FieldClass