ValueField::error()
Creates an info field that shows an error message in place of a field that could not be created or rendered
ValueField::error(string $name, string $message, ModelWithContent|null $model = null, Fields|null $siblings = null): InfoField
Parameters
| Name | Type | Default |
|---|---|---|
| $namerequired | string |
no default value |
| $messagerequired | string |
no default value |
| $model | Kirby\Cms\ModelWithContentornull |
null
|
| $siblings | Kirby\Form\Fieldsornull |
null
|
Return type
Parent class
Kirby\Form\Field\ValueField
inherited from Kirby\Form\Field