class Settings implements ExtenderInterface

Methods

serializeToForum(string $attributeName, string $key, callable|string $callback = null)

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

default(string $key, mixed $value)

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

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

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

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

No description

Details

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

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

Parameters

string $attributeName
string $key
callable|string $callback

Return Value

Settings

Settings default(string $key, mixed $value)

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

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

Parameters

string $key
mixed $value

Return Value

Settings

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

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

Parameters

string $configName
string $key
callable|string $callback

Return Value

Settings

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

Parameters

Container $container
Extension $extension

Return Value

void