option()
Shortcut for $kirby->option($key, $default)
Parameters
Name | Type | Default |
---|---|---|
$key * | string |
– |
$default | mixed |
null |
Return type
mixed
|null
Example
Fetch an option by key from the config:
Custom option