Manually added module dependency in block config removed on install
Issue
In order to trigger installation of optional block configuration, we edit the exported configuration to manually add a dependency on the module that provides the block, such as drutopia_article
. However, on install, this dependency is removed, with the result that the drutopia_home_page
feature is showing up as changed.
Proposed solution
When manually adding dependencies, use the enforced
section. See Config dependencies can optionally be enforced. This is what's done in core for example with the forum
node type, which requires the forum
module.
Specifically, it looks like this:
dependencies:
enforced:
module:
- drutopia_article