As per #2005970: In renderable arrays, #type should provide a #theme suggestion, similar to how drupal_prepare_form() works we should convert item_list renderable arrays to #type.
Issue fork drupal-2010210
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2010210-convert-all-itemlist
changes, plain diff MR !15569
Comments
Comment #1
thedavidmeister commentedblocked by #1828536: Rename 'type' variable of theme_item_list() to 'list_type'
Comment #2
thedavidmeister commentedno longer blocked.
Comment #5
joelpittetI can't think of a way to get this in to the 8.x without breaking anything. Let's revisit in 9.x unless you have a proposal for BC in 8.x?
Comment #6
catchWe can change the content of render arrays in minor releases, so nothing should stop this from happening in 8.x - see https://www.drupal.org/core/d8-bc-policy
Comment #20
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #22
smustgrave commentedThis may still be relevant so think we need a summary update and an MR
Seems like a good task for a first time user.
Comment #27
pcharratComment #28
pcharratHi,
I’m creating this merge request to ask for your help. I’d like to make sure I’m heading in the right direction before touching multiple areas of the core (80+ locations).
Thanks in advance.
Comment #29
pcharratComment #30
pcharratBefore moving forward and starting to make bulk changes to the numerous instances in the core, I’d like to get an initial review of the general approach:
Thank you in advance for your feedback
Comment #31
smustgrave commentedPer the original summary this doesn't appear to be the same task anymore, so if this issue is being taken over for a separate task, we already have a type item_list so not entirely sure why this is needed? Leaving the summary tag but now may be a non novice task.
Comment #32
pcharratComment #34
pcharratHello,
Okay, I'll undo all my work on this issue and restore it to its original state, including its history summary.
Comment #35
smustgrave commentedMy understanding was this was just replacing some instances
Comment #36
smustgrave commentedAlso not saying my understanding is fully correct
Comment #37
pcharratTo be honest, I thought it didn't exist because I couldn't find any instances of
'#type' => 'item_list'. However, I may have misunderstood, and I'd appreciate an example so I can better understand the issue.Comment #38
smustgrave commentedSetting a reminder to help out!
Comment #39
catchThere are some related issues here:
#311011: [PP-1] Replace links.html.twig with item-list--links.html.twig
#1842140: Remove title and wrapper div from item-list.html.twig
Comment #40
pcharratIs there any update on this ticket?