getSetting()
Overview
public any function getSetting(
required string name
, string defaultValue = ""
, string api = "/"
)
Fetches a configuration value from the configuration based on the currently in use API and resource
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | the name of the setting |
| defaultValue | string | No (default="") | the name of the setting |
| api | string | No (default="/") |