deprecated()
Triggers a deprecation warning if debug mode is active
Parameters
Name | Type | Default |
---|---|---|
$message * | string |
– |
Return type
bool
This function is used internally by Kirby, but you can also use it in your plugins to trigger deprecation warnings.
Example:
When a user uses the someFunction()
function and debugging is enabled, the message passed as parameter will be shown.