SlimCMS\Modules\SModuleManager::checkConfig PHP Method

checkConfig() protected method

Check base parametr in config
protected checkConfig ( stdClass $config ) : mixed
$config stdClass
return mixed
    protected function checkConfig($config)
    {
        $defClassConfig = ["installed", "active", "only_admin"];
        if (!isset($config->params)) {
            $config->params = new \stdClass();
        }
        foreach ($defClassConfig as $type) {
            if (!isset($config->params->{$type})) {
                $config->params->{$type} = false;
            }
        }
        return $config;
    }