Follow-up of #3128409: Drupal 9 compatibilities report
Problem/Motivation
Theme functions are deprecated in Drupal 8, but in Drupal 9 the deprecation warnings are no longer silenced #3117330: Trigger errors in deprecated theme functions, meaning that the following warning appears due to the theme function theme_name_item_list:
User deprecated function: Theme functions are deprecated in drupal:8.0.0 and are removed from drupal:10.0.0. Use Twig templates instead of theme_name_item_list(). See https://www.drupal.org/node/1831138 in Drupal\Core\Theme\Registry->processExtension() (line 498 of core/lib/Drupal/Core/Theme/Registry.php).
Steps to reproduce
This happens when `Drupal\Core\Theme\Registry::processExtension` is run (eg during database updates).
It would be great if this could be fixed.
Proposed resolution
Convert theme functions to twig templates.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
jeremyskinner commentedComment #3
megachrizI updated the issue summary, linked to the issue this is a follow-up to and very briefly described the proposed resolution.
Comment #4
jasonluttrellFor anyone else wondering, the theme-related error message can be silenced with a quick/temporary patch:
Hopefully, someone will fix this soon?
Comment #5
nikathoneUpdated the title to match what the patch is doing which is to remove all the theme functions deprecated in Drupal 8 and are going to be removed in Drupal 10.
Comment #6
nikathoneComment #7
mrshowerman#5 works for me, in terms of getting rid of the annoying deprecation notice. Thanks!
Comment #8
jeremyskinner commentedWorks well for me too, thanks!
Comment #10
nkoporeccomitted, thanks !