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.
This patch includes a preprocess function in addition to a twig template file. I also added a directory menu.inc within core/themes/stark/templates/
and placed the new template there.
Comment | File | Size | Author |
---|---|---|---|
d8tts-menu-overview-form.patch | 3.34 KB | EVIIILJ |
Comments
Comment #1
podaroklooks good
Thanks!
commited / pushed to front-end
Comment #3
jenlamptonThis isn't really want we want.
A template file that contains
Isn't really much help to anyone.
At the very least, we should be calling theme('table') (or including table.html.twig) here with the correct variables passed in. A theme dev won't be able to do anything with this file as it is.
Comment #4
EVIIILJ CreditAttribution: EVIIILJ commentedI agree but I thought the initial intention was to get Twig working. Only after it's working should we refactor the code.
I'm confused. The preprocess function does call theme('table'). Are you meaning call if from the template? I didn't know that was possible.
@jenlampton - If we just pass the variables to the table.twig template it will not format them correctly as with the theme('table') function. Not sure how to proceed without including all of the code from theme('table') within this preprocess function to then pass to the template as seperate variables to then use within the table.twig template.
Comment #4.0
EVIIILJ CreditAttribution: EVIIILJ commentedAdded reference to the added menu.inc directory