Closed (fixed)
Project:
Drupal core
Version:
9.1.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2018 at 15:15 UTC
Updated:
18 May 2020 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andypostComment #3
andypostComment #4
volegerNice, let's move them.
Comment #5
alexpottYeah but their theme hook is defined in drupal_common_theme() which is in theme.inc.
I think rather than doing this piecemeal we should come up with a general rule of how core theme implementations should be registered and the templates and preprocess functions are located.
If we do this patch we're just going to be shifting a lot of code into system.module for all the theme implementations in drupal_common_theme() and that feels wrong.
Comment #7
andypostComment #8
andypost@alexpott Except this 2 functions and
menu_list_system_menus()all other functions are deprecated inmenu.incSo I think it's fine to move this 2 preprocesses to system module to get rid of include instead of looking for "general" solution
PS: maybe better move them to
theme.incfor a while?Comment #9
volegerMove the
template_preprocess_*functions frommenu.inctotheme.inc.Comment #11
volegerHere the patch for 9.0.x
Comment #12
volegerUpdate IS.
Comment #13
volegerJust rerolled
Comment #14
xjmThis would be a minor-only change. Since 8.9.x and 9.0.x are now in beta, I'm moving this to 9.1.x. Thanks!
Comment #15
suresh prabhu parkala commentedPlease review.
Comment #16
daffie commentedThe code changes look good to me.
For me it is RTBC.
Comment #17
xjmComment #19
lauriiiConfirmed that there aren't any code in the patch that would rely on something that was defined in between the current location and the previous location. There isn't many lines of code in between since these files are loaded after one another in
DrupalKernel::loadLegacyIncludes().Committed 0585f27 and pushed to 9.1.x. Thanks!