app/Module/AbstractModule.php
final public function setPreference(string $setting_name, string $setting_value): void
    {
        DB::table('module_setting')->updateOrInsert([
            'module_name'  => $this->name(),
            'setting_name' => $setting_name,
        ], [
            'setting_value' => $setting_value,
        ]);
    }
final public function setPreference(string $setting_name, string $setting_value): void
    {
        DB::table('module_setting')->updateOrInsert([
            'module_name'  => $this->name(),
            'setting_name' => $setting_name,
        ], [
            'setting_value' => $setting_value,
        ]);
    }
final public function setPreference ( string $ setting_name , string $ setting_value ) : void { DB :: table ( 'module_setting' ) -> updateOrInsert ( [ 'module_name' => $ this -> name ( ) , 'setting_name' => $ setting_name , ] , [ 'setting_value' => $ setting_value , ] ) ; }
Set a module setting.

Since module settings are NOT NULL, setting a value to NULL will cause
it to be deleted.

@param string $setting_name
@param string $setting_value

@return void
Set a module setting .