Skip to content

Kirby 5.2.0

Dialog::error()

Renders the error response with the provided message

Dialog::error(string $message, int $code = 404, array $details = [ ]): array

Parameters

Name Type Default
$messagerequired string no default value
$code int 404
$details array [ ]

Return type

array

Parent class

Kirby\Panel\Dialog inherited from Kirby\Panel\Json