- Issue created by @gpietrzak
- First commit to issue fork.
- Status changed to Needs review
7 months ago 12:53pm 21 May 2024 - 🇮🇳India arunkumark Coimbatore
Added the configuration for the Schema and default settings
Since the module has configuration, add the following files to it:
This way, when the module is enabled, default values and data types for all the expected config can be counted on to exist, and you don't need to validate every time you call $config->get()
. For example:
'trackPageviews' => $config->get('track.pageviews') ?? FALSE,
Just becomes
'trackPageviews' => $config->get('track.pageviews');
Because you have a schema with data types for all your configuration variables, and you have already defined default values in your install :)
Needs review
1.0
Code
Added the configuration for the Schema and default settings