I'm currently working inand @yched suggest to replace the creating of text formats in the install profile with .yml files.
It sound reasonable, but brings an interesting issue. At this moment, the only implementation of configurables are Image Styles and Contact Categories. Both issues provide default configurables inside the image and contact modules respectively. But, what happens if an install profile want to provide image styles, or like in my case, text formats?
Do we have a way to load the configuration using something different than this?
// From contact.install config('contact.category.feedback')->set('recipients', array($site_mail))->save();
I'm not sure if this is a won't fix, and we have to create configurables using the entity_save method. But maybe we could have something like
Where source is a module, profile or theme to search the configurable.