Problem/Motivation

#2971699: Content Moderation and Workspace don't work together had the use case to prevent a module from being installed if another one is also installed. It achieved that goal with two separate hook_requirements() implementations, which is a bit clunky.

Proposed resolution

Allow modules to declare their incompatibilities with a conflicts section in their .info.yml file.

Remaining tasks

Discuss, agree, write a patch, etc.

User interface changes

Nope.

API changes

API addition: modules will be able to declare their incompatible states more easily.

Data model changes

Nope.

CommentFileSizeAuthor
#2 2982954.patch2.03 KBamateescu

Comments

amateescu created an issue. See original summary.

amateescu’s picture

Title: Allow module to declare incompatilities with other modules (conflicts) in their info.yml file » Allow modules to declare conflicts with other modules in their info.yml file
Status: Active » Needs work
Issue tags: +Workflow Initiative, +Needs tests
StatusFileSize
new2.03 KB

I started looking into this a bit for #2971699: Content Moderation and Workspace don't work together, but it's a lot to take in for someone unfamiliar with this code so I'm not sure I can do it myself before 8.6.0-alpha1.

Here's my WIP patch which builds a list of conflicts based on a new conflicts key that modules could use in their info.yml file.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

pandaski’s picture

amateescu’s picture

Status: Needs work » Closed (duplicate)
Issue tags: -Needs tests
Related issues: +#746752: New "conflicts" property for .info.yml extension files

@Joseph Zhao, thanks for finding those. Marking as a duplicate of #746752: New "conflicts" property for .info.yml extension files.