saveSetting()
Overview
public any function saveSetting(
required string category
, required string setting
, required string value
, string siteId = ""
, string tenantId
)
Saves the value of a setting. See Editable system settings for a full guide.
Arguments
Name | Type | Required | Description |
---|---|---|---|
category | string | Yes | Category name of the setting to save |
setting | string | Yes | Name of the setting to save |
value | string | Yes | Value to save |
siteId | string | No (default="") | Deprecated (use tenantId): ID of site to which the setting applies (optional, if empty setting is treated as system wide default) |
tenantId | string | No | ID of the tenant to which the setting applies (optional, if empty setting is treated as system wide default) |