Change record status: 
Project: 
Introduced in branch: 
8.3.x
Introduced in version: 
8.3.0
Description: 

The new experimental Workflows module that provides:

  • A workflow configuration entity type. This is where states and transitions are configured.
  • The concept of workflow type plugins. This is how modules can leverage workflows and extend the information stored against a state or a transition. If there are no workflow type plugins the user can not create workflows because there is nothing to apply them to.
  • Fluid API for workflow entities:
        $workflow = new Workflow(['id' => 'test', 'type' => 'test_type'], 'workflow');
        // By default states are ordered in the order added.
        $workflow
          ->addState('draft', 'Draft')
          ->addState('published', 'Published')
          ->addState('archived', 'Archived')
          ->addTransition('create_new_draft', 'Create new draft', ['draft', 'published'], 'draft')
          ->addTransition('publish', 'Publish', ['draft', 'published'], 'published');
    
  • A workflow creation UI. A user interface that can create, edit and delete workflows and their states and transitions.

There are many changes to the experimental Content Moderation module:

  • It depends on the Workflows module
  • Removing the state and transition configuration entities
  • Changing the content moderation state content entity to record the workflow and state used.
  • Adds a new workflow type to moderate content entities.
  • Changes the permission names to include the workflow label
  • Changes how workflows are added to bundles. Instead of arranging states and transitions on the bundle you just select a workflow.

Important upgrade information

To upgrade from 8.2.x version of content moderation you will need to uninstall it before updating the codebase and re-install after. As this is an ALPHA experimental module data upgrade paths are not supported.

Impacts: 
Site builders, administrators, editors
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done