moduleExists per domain

Created on 3 March 2022, over 2 years ago
Updated 14 June 2023, over 1 year ago

Drupal Version

8.9.20

Domain module version

8.x-1.0-beta6

Expected Behavior

I would like to be able to enable a module only on specific domains.

Actual Behavior

Turning on/off modules applies to all domains. I know there would be implications of module install/uninstalls (DB tables disappearing), in reality I think a solution whereby `\Drupal::moduleHandler()->moduleExists('MODULE_NAME')` returns TRUE/FALSE and hooks/events are fired or not would be sufficient. Is there anything already contemplated for this? Any ideas on the best way to go about doing this?

Thanks in advance for any advice you might be able to give.

✨ Feature request
Status

Postponed: needs info

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ͺπŸ‡ΈSpain willeaton

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    Reviewing for πŸ“Œ Documentation for 2.0.x Active ...

    Has this issue been resolved? Can you duplicate after updating to the 2.0.0-beta1 release?

    Per the project description, "The 2.0.0-beta1 release is a code-only update from 8.x-1.0-beta8. Upgrading should only require a cache clear. The 8.x-1.x branch is now deprecated and will receive no new commits or releases."

    Closing issue as outdated.

  • πŸ‡ͺπŸ‡ΈSpain willeaton

    Hi, not sure it's correct to close this feature request. It's not affected by a beta release because no code has been completed. I understand that there might not be interest in making this functionality yet but maybe if the issue exists it might get more interest

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    thanks for the feedback... Reopening and changing the category from Support Request to Feature Request.

    Can we confirm this should be a feature request for the latest version?

  • πŸ‡ͺπŸ‡ΈSpain willeaton

    Sure, any version. It's something we used to have in Drupal 6 through core and no longer have in Drupal 9

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass
  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    I think the summary needs to be updated and some more detail will be required for this.

    Given the way configurations are done in D9/10, I wonder if this isn't more appropriate as part of Core or contrib configuration module? For instance, I can see how this might work with config split if the number of domains was reasonable. Obviously, this wouldn't be a very sustainable approach for many domains.

Production build 0.71.5 2024