Needs work
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Aug 2019 at 16:54 UTC
Updated:
9 Feb 2022 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
finnsky commentedComment #3
finnsky commentedReworked core js which are use hardcoded messages instead of Drupal.theme.messages
TODO: Define and update php files which should be changed to use status-messages.html.twig
Comment #4
finnsky commentedExample of php hardcoded messages
https://git.drupalcode.org/project/drupal/blob/8.8.x/core/modules/field_...
Comment #6
andypostTest fails because markup changes for some reason, so I fixed test
Not really sure that needed because this test ensures for render of following markup
<script>var hitsTheFloor = "</body>";</script>Also
\Drupal\render_placeholder_message_test\RenderPlaceholderMessageTestController::setAndLogMessagetesting module probably another reason why it may happenExpected
Actual
Comment #7
finnsky commentedI think it happened because some messages appear now using regular(not hardcoded) way. And duplicated in announce area. So yeah. This test should be fixed. Thanks @andypost
Comment #8
lauriiiThis looks like a great start, thank you! We should also remove hard coded messages markup from our PHP code so moving to needs work.
Comment #15
ckrinaI've just rerolled the previous Drupal 8 patch to Drupal 9 where all the hard coded markup in JS has been removed. The work to remove them from PHP as requested in comment #8 still needs to happen.