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
Developers need an easy way to get and set (custom) submission data.
Proposed resolution
Add set/get submission element value methods
API changes
- WebformSubmission::setElementData($key, $value);
- WebformSubmission::getElementData($key);
Comment | File | Size | Author |
---|---|---|---|
#7 | add_set_get_submission-2912197-5.patch | 21.56 KB | jrockowitz |
| |||
#3 | add_set_get_submission-2912197-2.patch | 21.52 KB | jrockowitz |
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #6
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 #11
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedHm, this was a bit of a BC break in the last update of webform I did on a custom project. Is BC being considered during the beta period?