Reviewed & tested by the community
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Mar 2025 at 23:29 UTC
Updated:
23 Oct 2026 at 00:54 UTC
Jump to comment: Most recent
Comments
Comment #2
berdirthe constants are passed to the mark template. They are defined by it and that's why they are in theme.inc. both node and history module are just using them, not owning them.
That makes BC really challenging with an enum and moving it, we'd need completely deprecate and replace the theme hook, but that would break anyone using it.
Comment #3
acbramley commentedOh gosh I didn't realise that, I hadn't done a full grep for the constants just a CTRL+Click in PHPStorm to find usages of it.
Comment #5
nicxvan commentedAm I missing something or is this still true?
I only see:
Then direct checks in the template.
Comment #6
catchNo you're right, we're still defining the 'mark' theme hook in ThemeCommonElements.
I think we need an issue against history module to move the theme hook over there (where it could use an enum if it wants), and we could keep this for deprecating the constants and theme hook. Going to be for removal in Drupal 13 at this point.
Comment #7
nicxvan commentedComment #9
nicxvan commentedNot sure if the responsive constants ended up in the right place.
Comment #10
nicxvan commentedComment #11
nicxvan commentedFailures look random, they passed on the previous run.
Comment #12
smustgrave commented@nicxcan posted about this in #needs-review-queue channel so decided to give it a look.
First nice find that it was no longer used!
Pretty basic review.
I applied the MR locally
Did searches for RESPONSIVE_PRIORITY_MEDIUM (25 matches) and RESPONSIVE_PRIORITY_LOW (28 matches) and just verified they were using Table:: now and the ones that weren't were around the deprecation
Did the same for MARK_READ but found some twig template mark.html.twig
Assume these templates need to be deprecated as well?
Comment #13
nicxvan commentedThe templates are deprecated by the hook, I asked @catch about the process yesterday on slack but forgot to mention it.
The theme hook deprecation will trigger for the templates.
Comment #14
smustgrave commentedCould we add a todo in the template so it’ll get picked up when we searches deprecations. Just afraid in a few years may forget
Comment #15
smustgrave commentedThanks!