class SettingsBag (View source)

deprecated Use settingsBag service

Settings bag used to get quickly a setting value.

Properties

static protected array $settings Cached settings values.

Methods

static string|boolean
get(string $settingName) deprecated

Get a setting value from its name.

static Document|bool
getDocument(string $settingName) deprecated

Get a document from its setting name.

static 
clear() deprecated

Clear static cache.

Details

static string|boolean get(string $settingName) deprecated

deprecated Use settingsBag service

Get a setting value from its name.

Parameters

string $settingName

Return Value

string|boolean

static Document|bool getDocument(string $settingName) deprecated

deprecated Use settingsBag service

Get a document from its setting name.

Parameters

string $settingName

Return Value

Document|bool

static clear() deprecated

deprecated Use settingsBag service

Clear static cache.