user_setting
Retrieves a user setting.
Example
1
{{ 'b2b_supplier' | user_setting: 'switch_one' }} => true
Input
Type | Parameter | Description | Required |
---|---|---|---|
string | settingsKey | The name of the variable to retrieve. Comes before the | sign. | Required |
int|null | settingsPath | The path of the setting | |
int|null | defaultValue |
Output
Type | Description | |
---|---|---|
mixed | null | The value of the setting or defaultValue if the setting is not set |