class Settings implements ExtenderInterface

Methods

serializeToForum(string $attributeName, string $key, $callback = null, $default = null)

<p>Serialize a setting value to the ForumSerializer attributes.</p>

default(string $key, $value)

<p>Set a default value for a setting.</p>

registerLessConfigVar(string $configName, string $key, $callback = null)

<p>Register a setting as a LESS configuration variable.</p>

extend(Container $container, Extension $extension = null)

No description

Details

Settings serializeToForum(string $attributeName, string $key, $callback = null, $default = null)

<p>Serialize a setting value to the ForumSerializer attributes.</p>

Parameters

string $attributeName
string $key
$callback
$default

Return Value

Settings

Settings default(string $key, $value)

<p>Set a default value for a setting.</p>

<p>Replaces inserting the default value with a migration.</p>

Parameters

string $key
$value

Return Value

Settings

Settings registerLessConfigVar(string $configName, string $key, $callback = null)

<p>Register a setting as a LESS configuration variable.</p>

Parameters

string $configName
string $key
$callback

Return Value

Settings

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension