Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Nov 2012 at 23:14 UTC
Updated:
29 Jul 2014 at 21:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bdragon commentedOK, so I don't quite like the way I am doing this, we might want to make deeper changes to the structure of messages.
Also I don't know how much this affects which messages land on which page load. It seems to me that *any* change in how this runs causes behavioral changes.
Comment #2
sbudker1 commentedApplying the patch was successful and the messages remained the same! During the testing I did not see any behavioral changes.
Comment #2.0
sbudker1 commentedrenderable meta
Comment #3
star-szrThis patch is very close to #1939082: Convert theme_status_messages() to Twig, should these two issues be merged? The templates look a bit different but the overall changes are very similar.
Comment #4
jenlamptonHm. Well, this issue was marked as a blocker for #1843650: Remove the process layer (hook_process and hook_process_HOOK) but it looks like all that's in this patch is a theme function to template conversion. Is there more that needs to be done to messages to turn them into a proper rendarable?
If so, we should remove the theme function -> template file conversion from this issue (since that's what #1939082: Convert theme_status_messages() to Twig one is for) and leave this issue for the refactoring.
If not, we should close this issue and mark it as a duplicate of #1939082: Convert theme_status_messages() to Twig
Comment #5
star-szrBumping back to needs review so we can discuss this.
Comment #6
jenlamptonAfter a quick discussion with @joelpittet we decided to remove the conversion from this issue.
re-rolling without the conversion.
Comment #7
jenlamptonMaybe we can do the same thing here as we did in #1843668: Move building of breadcrumb render array from template_process_page() to template_preprocess_page()
And also use this issue to get them out of process :)
Comment #8
jenlamptonmaybe something like this?
Comment #9
jenlamptonwrong patch. :/ also, rethinking this...
Comment #10
star-szr#8: core-make_messages_renderable-1843678-6.patch queued for re-testing.
Comment #10.0
star-szrAdd related Twig conversion
Comment #11
star-szrMaybe I'm missing something but because 'messages' is already a render array it seems to me that we can just move it to preprocess without any side effects. It's already renderable. The actual drupal_get_messages() call will remain in the theme function, or with #1939082: Convert theme_status_messages() to Twig, in the preprocess for the template file.
Comment #12
jenlamptonokay, so the current patch removes from process and adds to preprocess. so we should pass tests here (YAY!) and then just need a quick review. :)
Comment #13
star-szrJust updating the comment to reflect what is actually happening. We aren't populating messages, just setting up a render array for later rendering. I think this is ready to go!
Comment #15
star-szrComment can be a bit better :)
Interdiff is from #8.
Comment #16
star-szrRe-titling.
Comment #17
star-szrParens :)
Comment #17.0
star-szrAdd link to process meta
Comment #17.1
star-szrUpdate summary to reflect latest patch
Comment #18
yesct commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #19
alexpottComment #20
star-szrHmm, I was doing an unrelated reroll and it looks like this got included as part of a commit on #2026347: Adding methods to UserInterface/AccountInterface.
Ref. commit 45a9e85 and the theme.inc diff.
So… fixed? :)
Comment #21.0
(not verified) commentedReasoning for problem/motivation