class Settings implements ExtenderInterface
Methods
serializeToForum(string $attributeName, string $key, callable|string|null $callback = null)
Serialize a setting value to the ForumSerializer attributes.
resetWhen(string $key, callable|string $callback)
Delete a custom setting value when the callback returns true.
registerLessConfigVar(string $configName, string $key, callable|string|null $callback = null)
Register a setting as a LESS configuration variable.
resetJsCacheFor(string $setting)
Register a setting that should trigger JS cache clear when saved.
Details
at
line 44
Settings
serializeToForum(string $attributeName, string $key, callable|string|null $callback = null)
Serialize a setting value to the ForumSerializer attributes.
at
line 58
Settings
default(string $key, mixed $value)
Set a default value for a setting.
Replaces inserting the default value with a migration.
at
line 72
Settings
resetWhen(string $key, callable|string $callback)
Delete a custom setting value when the callback returns true.
This allows the setting to be reset to its default value.
at
line 92
Settings
registerLessConfigVar(string $configName, string $key, callable|string|null $callback = null)
Register a setting as a LESS configuration variable.
at
line 104
Settings
resetJsCacheFor(string $setting)
Register a setting that should trigger JS cache clear when saved.