Change record status: 
Project: 
Introduced in branch: 
8.5.x
Introduced in version: 
8.5.0
Description: 

Previously the workflowHasData and workflowStateHasData methods on WorkflowTypeInterface were marked @internal, for use only by content moderation. These methods are now part of the API, for general use by any workflow type.

Implementing these methods will ensure that when a state or workflow has stored data associated with it, it cannot be removed. This is useful if the data should be cleaned up prior to the state or workflow being deleted.

Users will be warned in the UI that a state or workflow cannot be deleted because of the associated data and configuration imports will display an error when removing workflows or states that have data.

Impacts: 
Module developers