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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rodrigoaguilera created an issue. See original summary.

rodrigoaguilera’s picture

FileSize
4.59 KB

Here is the patch ins case I didn't explained myself right

rodrigoaguilera’s picture

Status: Active » Needs review
JohnAlbin’s picture

I was wondering about this! Nice catch, Rodrigo!

rodrigoaguilera’s picture

I'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.

frob’s picture

@rodrigoaguilera that sounds like a separate issue. Are you sure that is caused by this patch?

rodrigoaguilera’s picture

@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.

frob’s picture

Status: Needs review » Reviewed & tested by the community

This all worked for me. I no longer need to install search before installing my sub-theme.

Patch 1 (from comment #2) is RTBC.