Postponed (maintainer needs more info)
Project:
Component variants
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2026 at 09:50 UTC
Updated:
30 Mar 2026 at 07:54 UTC
Jump to comment: Most recent
Comments
Comment #3
ajitsCreated an MR that should fix this.
Comment #4
graber commentedLooks like it's introducing a hard dependency, we don't want that. How is it solved for other config entity types in Drupal core and contrib modules?
Comment #5
amateescu commentedUsing that handler class is not a hard dependency, if the Workspaces module is not installed the additional handler is simply not used/instantiated.
What we need to consider instead is whether these config entities should be tracked in the workspace they're being changed in. Is there an intended use case to create or edit component variants in a workspace? If so, the wse_config module (part of www.drupal.org/project/wse) needs to be used.
If not, this MR is enough.
Comment #6
graber commentedAs long as there are no such issues in the queue - no.
Ok, it's not a hard dependency indeed but still.. we add code specific to another module. If we continue going this way, in a year or 2 we'll have more of such third party code that accommodates something else that is completely optional, and that's not the right way to go.
I think we need a better understanding of the issue, many of other contrib modules also define config entity types (https://git.drupalcode.org/project/message/-/blob/8.x-1.x/src/Entity/Mes...), core itself defines config entity types (https://git.drupalcode.org/project/drupal/-/blob/main/core/modules/block...) and I don't see any Workspaces-specific entries in the entity type declarations.
Please do proper investigation, otherwise patching locally may be your only option if you don't have time.