Allow to explicitly opt-out a settings form from domain_config.

Created on 9 February 2024, about 1 year ago

I am developing a custom module for a site that uses domain, and domain_config for overriding configurations for specific sites. However, there is a specific configuration form that i want to explicitly disable the domain_config behaviour. I have looked at the module code but it does not seem like there is any mechanism to allow that.

Of course, i can remove the form element using a hook in the module, but i believe it would be a good functionality to have.
I am not sure about which would be a good approach for implementing this. Here there are a few loose ideas:

  • Look for a specific attribute in the root form array data. For example #disable_domain_config or similar. Then, SwitchForm::buildForm can check for that and disable the form element accordingly.
  • Implementing a custom hook. In this case, the hook might return a list of forms that are to be excluded.
Feature request
Status

Active

Version

2.0

Component

- Domain Config UI

Created by

🇪🇸Spain guiu.rocafort.ferrer Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024