Returns a param from the configuration.
Name | Type | Description |
---|---|---|
of | string | The name of the param |
default | mixed | (Optional) The default value if param is not set |
params.php:
<?php
// This return value is used to fill $config->params
return [
'myParam' => 'myValue',
];
Documentation source:
{{ param(of:'myParam') }}
{{ param(of:'anotherParam', default: 'Some default') }}
Result:
myValue
Some default