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
In #2289917: Convert "messages" page element into blocks the 'display' variable was refactored away from '#theme' => 'status_messages' to '#type' => 'status_messages'. As a result, the 'display' variable is no longer available in status-messages.html.twig. However ,this variable was not removed from the status-messages.html.twig docblock.
Proposed resolution
Remove documentation for the 'display' variable from status-messages.html.twig
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2936161-2-7.txt | 823 bytes | yogeshmpawar |
#7 | 2936161-7.patch | 3.39 KB | yogeshmpawar |
Comments
Comment #2
idebr CreditAttribution: idebr at ezCompany commentedAttached patch removes all references to the 'display' variable in the status-messages.html.twig templates in the system module and the core themes Stable, Bartik, Classy
Comment #4
sk33lz CreditAttribution: sk33lz at Zivtech commentedPatch #2 applies cleanly to 8.6.x and removes the display variable as intended. Moving status to RTBC.
Comment #5
alexpottWe have a new theme now. Need to do core/profiles/demo_umami/themes/umami/templates/components/messages/status-messages.html.twig too.
Comment #6
yogeshmpawarComment #7
yogeshmpawarUpdated patch as per comment #5 & interdiff added too.
Comment #8
idebr CreditAttribution: idebr at ezCompany commented@Yogesh Pawar Thanks for picking this up!
The documentation is correctly updated for the new umami theme. No new themes have been added in the meantime, so setting back to RTBC.
Comment #9
alexpottCrediting myself for #5.
Committed and pushed d01bb4f633 to 8.6.x and 0f7d3d5397 to 8.5.x. Thanks!
Backported to 8.5.x since this is a docs patch.