Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Proposed resolution
Split STATE_DRAFT into STATE_DRAFT_CREATED and STATE_DRAFT_UPDATE
Remaining tasks
- Add STATE_DRAFT_CREATED and STATE_DRAFT_UPDATE to WebformSubmissioninterface
- Update \Drupal\webform\Entity\WebformSubmission::getState
- Convert WebformSubmissionInterface::STATE_DRAFT to ::STATE_DRAFT_CREATED and ::STATE_DRAFT_UPDATED
- Write update hook that converts STATE_DRAFT to ::STATE_DRAFT_CREATED and ::STATE_DRAFT_UPDATED
- Write code to account for old 'draft' ::isStateTriggered($state, $states)
- DRAFT_CREATED and DRAFT_UPDATE as DRAFT to $states array.
- Update tests
Notes
- Still use STATE_DRAFT for filtering
User interface changes
- Adding Draft created and updated to submission states
API changes
Plugins to be update
- ActionWebformHandler
- EmailWebformHandler
- RemotePostWebformHandler
Data model changes
N/A
Release notes snippet
TDB
Comment | File | Size | Author |
---|---|---|---|
#7 | 3064070-7.patch | 32.97 KB | jrockowitz |
| |||
#4 | 3064070-4.patch | 32.74 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented