Moderation Transition Execute
moderation_transition_executeApply a Drupal content moderation transition by validating the entity's current state against the workflow, then updating it to the transition's target state.
Instructions
Execute a moderation transition on an entity.
Looks the transition up on its workflow and applies its target state to the entity, refusing when the entity's current state is not one the transition starts from. The old version fetched the transition through JSON:API, which has no such resource, so this never ran.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| entity_id | Yes | ||
| entity_type | Yes | ||
| transition_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||