AI disclosure
This module was developed with assistance from an LMM but each line was reviewed
Goal
Migration for a Drupal 11+ switching from workbench_moderation to core's content_moderation and workflows module.
| # | Migration id | Result |
|---|---|---|
| 1 | wbm2cm_workflow_scaffold |
Creates one empty workflow per signature bucket (type: content_moderation). Largest bucket claims editorial; the rest get editorial_1, editorial_2, … |
| 2 | wbm2cm_workflow_states |
Writes each WM ModerationState into every workflow whose signature contains it. |
| 3 | wbm2cm_workflow_transitions |
Writes each WM ModerationStateTransition into every workflow whose signature contains BOTH endpoints, coalescing transitions that share a target state into a single CM transition with multiple from values. |
| 4 | wbm2cm_workflow_entity_types |
Opts every WM-enabled bundle into its signature's workflow (triggers CM to attach its moderation_state field). |
| 5 | wbm2cm_content_moderation_state |
For every revision of every moderated entity, creates a matching ContentModerationState attached to the workflow the revision's bundle belongs to. |
Usage
See README.md
What it does NOT do
Left to the admin on purpose:
- View filter swap. Views using WM's
Latest revisionfilter
need to be updated to CM'sModeration statefilter. Edit the
affected views by hand. - Custom
ModerationStatesubclasses (sites that extended WM's
state plugin) have no CM analogue. The migration reads them as
plain states — additional custom behavior does not carry over.
Supporting organizations:
Sponsoring co-maintainer + maintenance - smustgrave
Project information
- Created by smustgrave on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
