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

NameTypeRequiredDescription
namestringYesthe name of the setting
defaultValuestringNo (default="")the name of the setting
apistringNo (default="/")