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
We need to customize the config of the modules we add, but that's not easily possible with the config system. #3304540: Test config/install to provide config for used modules has resulted in a custom solution based upon config/optional folder.
Proposed resolution
Adopt https://www.drupal.org/project/config_rewrite and remove custom solution
Issue fork lupus_decoupled-3340799
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mbm80 CreditAttribution: mbm80 at drunomics commentedComment #5
mbm80 CreditAttribution: mbm80 at drunomics commentedEnabled config_rewrite & removed rest_menu_items.config from install hook.
rest.resource.rest_menu_item cant be imported via config_rewrite as it is part of the rest_menu_items_test module, which is not enabled/required.
#nr
Comment #6
fagoI commented the MR, please see the small remarks there.
I think the goal here should be to remove all the custom config-import code, if config_rewrite is not able to provide this, it seems to be not the full solution.
But - when rest.resource.rest_menu_item is not provided by a module, could we just put it into the regular install config? or optional config?
Comment #7
mbm80 CreditAttribution: mbm80 at drunomics commentedchecking
Comment #8
mbm80 CreditAttribution: mbm80 at drunomics commentedyes, rest.resource.rest_menu_item can be just default config #nr
Comment #10
fago