I have been unable to theme a webform that is displayed through the webform reference field.
Following the template suggestions, the format would be webform--name-of-form.html.twig. This is not the case though.
I did some research and it seem that the template suggestions don't fire off when rendering a form through the reference field, and thus you are unable to target it to create a theme file.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | webform_reference_field-2847441-4.patch | 1.46 KB | jrockowitz |
Comments
Comment #2
devkinetic commentedComment #3
devkinetic commentedComment #4
jrockowitz commentedLooks like the webform.html.twig template had no template suggestions available.
Let's see if the attached patch passes all the tests and then I will just commit it.
Comment #5
devkinetic commentedWill this work? I'm going to test but based on my research it looked like the fact that
$variables['webform']wasn't being passed was the culprit.Same thing with possibly with
$variables['webform_submission']Comment #7
jrockowitz commented