The SettingsManager allows you to easily store key/value based configuration settings based on module components and also optionally bound to a contentcontainer (e.g. users or spaces).
If you need to categorize key names, use this syntax: category.subcategory.camelCaseKeyName
The SettingsManager component is automatically added all to humhub\components\Module classes.
Get desired module / application instance:
Create or update existing setting in settings manager:
Get value of setting manager:
If you want to store settings related to an user or space - use the ContentContainerSettingsManager:
Shortcuts for currently logged in user settings:
Shortcuts for current space settings: Note: This is only available if current controller is instance of ContentContainerController.