Moderation Transition Delete
moderation_transition_deleteRemove a moderation transition from a Drupal workflow, save the workflow, and report remaining transitions. Warns when deleting the last transition leaves content unable to move.
Instructions
Delete a moderation transition from a workflow.
The counterpart of moderation_transition_create: a transition is
configuration inside its workflow, so this removes it through
WorkflowTypeInterface::deleteTransition() and saves the workflow,
exactly as Drupal's own delete form does. The reply reports how many
transitions the workflow has left, and warns when that was the last
one -- a workflow with no transitions cannot move content at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| transition_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||