Skip to content

Kirby 5.0.4

Helpers::deprecated()

Triggers a deprecation warning if debug mode is active and warning has not been surpressed via Helpers::$deprecations

Helpers::deprecated(string $message, string|null $key = null): bool

Parameters

Name Type Default Description
$messagerequired string no default value
$key stringornull null If given, the key will be checked against the static array

Return type

bool

Whether the warning was triggered

Parent class

Kirby\Cms\Helpers