- Issue created by @Driskell
- 🇬🇧United Kingdom adamps
"Import" converts the current site config to the new format, which is quite a different thing from a default. If you want the defaults then you should do "enable" (without importing), or "reset". All of that is part of the "mailer override" module, which is for optionally replacing the implementations of legacy mail implementations from other modules (so yes it's non-standard, it was tricky).
If imported like the User module then you lose all of your changes if you import them again.
True, and it gives a clear warning. How else could it be? I am not a magician😃.
===
If you are writing a new mailer, then ignore all the above. You can just provide a straightforward default in
config/install
directory. Then you could compare/reset it in the usual way with the config update module. This seems to be exactly inline with how config works in other parts of Drupal. Does that answer your question?You could also hardcode a value into your code. It could still be overridden in the UI, but the UI wouldn't see the value from code. So maybe this what you tried that wasn't working?
Automatically closed - issue fixed for 2 weeks with no activity.