interface SettingsRepositoryInterface

Methods

array
all()

No description

mixed
get(string $key, mixed $default = null)

<p>You generally should use the Settings extender's <code>default</code> method instead to register default values.</p>

void
set(string $key, mixed $value)

No description

void
delete(string $keyLike)

No description

Details

array all()

Return Value

array

mixed get(string $key, mixed $default = null)

<p>You generally should use the Settings extender's <code>default</code> method instead to register default values.</p>

<p>You may still need to use the <code>$default</code> parameters here in cases where you need to access the default value of a dynamic setting.</p>

Parameters

string $key
mixed $default

Return Value

mixed

See also

\Flarum\Settings\Settings::default()

void set(string $key, mixed $value)

Parameters

string $key
mixed $value

Return Value

void

void delete(string $keyLike)

Parameters

string $keyLike

Return Value

void