Closed (fixed)
Project:
Domain
Version:
2.0.x-dev
Component:
- Domain Config
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Sep 2023 at 17:06 UTC
Updated:
30 Aug 2025 at 15:14 UTC
Jump to comment: Most recent
Comments
Comment #3
oliverpolden commentedWith this you can inject the domainConfigOverrider (domain_config.overrider) service and then do:
I have tested this by creating an entity from my primary domain with settings on the entity that relate to two different domains. I have an event subscriber on entity insert that determines the domain and triggers a MailChimp campaign. The MailChimp module successfully loads the config for the relevant domain.
Comment #4
oliverpolden commentedComment #7
mably commentedMerged, thanks!
You might have to call
initiateContext()before using thesetDomain()method.