Skip to content

Kirby 6.0.0

TemplateField::error()

Creates an info field that shows an error message in place of a field that could not be created or rendered

TemplateField::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

Kirby\Form\Field\InfoField

Parent class

Kirby\Panel\Form\Field\TemplateField inherited from Kirby\Form\Field