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.
Currently the entity_translation_overview()
page callback does all the heavy lifting of generating the table on the translation overview, and at the very end the rendered table rows are passed to the theme_entity_translation_overview()
theme function.
This is not very useful, all data is already rendered before it is passed to the theme function, and we don't have any data available about the entity for which the overview is generated. We should move all the rendering logic for the overview inside the theme function.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2710879-2.patch | 2.76 KB | pfrenssen |
|
Comments
Comment #2
pfrenssenIn this patch the logic to render the overview is moved into a theme function so it can be properly overridden. Because there already was a (barely working) theme function available I opted to create a new theme function to not break backwards compatibility.