Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When introducing configuration on the config/install folder you are adding new dependencies for example the search block has a dependency on the search module so the starterkit can not be installed if the search module is uninstalled.
Proposed resolution
Move block configuration to optional config folder so the blocks will only install if the dependencies are met.
Remaining tasks
Patch
Comment | File | Size | Author |
---|---|---|---|
#5 | 2785419-delete-config-5.patch | 9.58 KB | rodrigoaguilera |
#2 | 2785419-move-config-1.patch | 4.59 KB | rodrigoaguilera |
Comments
Comment #2
rodrigoaguileraHere is the patch ins case I didn't explained myself right
Comment #3
rodrigoaguileraComment #4
JohnAlbinI was wondering about this! Nice catch, Rodrigo!
Comment #5
rodrigoaguileraI'm having second thoughts on this patch.
I'm developing a multilingual site and this has created a confusing config state where some blocks have been created with langcode: 'en' (because of this yml files) but the rest of the configuration is in another language.
I think because of this the blocks configuration on install should be removed.
Comment #6
frob@rodrigoaguilera that sounds like a separate issue. Are you sure that is caused by this patch?
Comment #7
rodrigoaguilera@frob
Yes, the hardcoded language is kind of a different issue. I haven't tested if removing it make drupal set the default language of the site.
Comment #8
frobThis all worked for me. I no longer need to install search before installing my sub-theme.
Patch 1 (from comment #2) is RTBC.