Give the gift of Drupal. All merchandise is 50% off through 2016.
Posted by xjm
Default configuration entities provided by a module will typically have object names in the format:
However, regardless of the config prefix, the entity system requires the machine name to be unique for a given entity type, so default configuration provided by a module will not be installed properly when two modules provide an entity with the same machine name. With, the second object installed silently overwrites the first. Once that issue is fixed, installing the second module will presumably throw an exception.
Attached test (for) demonstrates this.
- Recommend a best practice of prefixing default configuration entity IDs with the module name, e.g.:
- Update default configuration entities already in core (views, blocks, etc.) to this convention.
I'll roll the patch once we're agreed. The patch is postponed onsince a lot of the offenders are in the Block module.