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.
Luckily, most callbacks seem to be on Render Element plugins, and those already are RenderCallbackInterface through ElementInterface.
Starting here with the ones that I'm seeing in our project, there are more, some functions will need to be converted into static methods or methods on services.
@see Render callbacks must be a closure or implement TrustedCallbackInterface or RenderElementInterface
Comment | File | Size | Author |
---|---|---|---|
#6 | webform-trusted-callbacks-3120697-6.patch | 4.69 KB | Berdir |
| |||
#2 | webform-trusted-callbacks-3120697-2.patch | 1.23 KB | Berdir |
|
Comments
Comment #2
BerdirComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedAdding links to the change record.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe only procedural callback function that I have found is
_webform_bootstrap_webform_element_webform_likert_pre_render()
Comment #5
BerdirYeah, that's possible, I just fixed the ones that were breaking my tests :) The referenced meta issue has a few more examples too there might also be some that aren't covered by tests.
Comment #6
BerdirDid fine one or two more, but not much.
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedPatch looks fine to me. Maybe someone else can review it. Otherwise, we can make it postponed until Drupal 8.7 is no longer support.
Comment #8
strozx CreditAttribution: strozx at Agiledrop - Your Trusted Drupal Teammates commentedHi, I also tested the patch and it looks good to me.
Regards, Strozx
Comment #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 commentedComment #14
Rob230 CreditAttribution: Rob230 as a volunteer and at CTI Digital commentedThis has broken Drupal 8.7 support, so lots of sites on 8.7 have a fatal error - interface not found.
Should release 8.x-5.15 have a depdency or warning added?
Comment #15
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@see #3145249: Core requirements for Drupal 8.7