I can add a custom setting to the Project Config like so:
Craft::$app->getProjectConfig()->set('modules.module-name.settingName', true);
In the project.yaml
file that would get saved at the top level:
config/project/project.yaml
dateModified: 1633752346
plugins:
plugin-name:
edition: pro
modules:
module-name:
settingName: true
Is this safe to do? Does Craft care if there are custom settings at the top level of the project.yaml
file? Would Craft ever overwrite these during some other action?
Are there any naming or placement conventions I should follow if I have custom project config settings that don't fit into the 'plugins' category?