Problem/Motivation
There's no usage in core (except hook example) and few in contrib http://codcontrib.hank.vps-private.net/search?text=theme_get_registry&fi...
Steps to reproduce
$ git grep theme_get_registry
core/includes/theme.inc:91:function theme_get_registry($complete = TRUE) {
core/lib/Drupal/Core/Render/theme.api.php:550: $hooks = theme_get_registry();
Proposed resolution
deprecate the function
Remaining tasks
- file CR https://www.drupal.org/node/3348850
- patch and test
- review/commit
User interface changes
no
API changes
function theme_get_registry() is deprecated
Data model changes
no
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3348848-7.patch | 2.64 KB | purencool |
| #3 | 3348848-3.patch | 2.93 KB | andypost |
| #3 | interdiff.txt | 618 bytes | andypost |
Comments
Comment #2
andypostHere's a CR and patch
Comment #3
andypostfix CS
Comment #4
andypostre-parented to #3097045: [META] Provide modern replacements for and deprecate the legacy include files
Comment #5
andypostComment #6
daffie commentedAll code changes look good to me.
Deprecation message testing has been added.
The testbot return green.
The IS and the CR are in order.
For me it is RTBC.
Comment #7
purencool commentedThe result of testing patch 3348848-3.patch.
Branch
Searching references of the theme_get_registry function being called before applying the patch.
When administering the patch the following error occurred. The issue is likely the testLegacyThemeRegistryRebuild() method was added to core.
Using @andypost's original code a refactored patch was created and has been added to the ticket.
After the newly created patch the theme_get_registry function seems to be no longer called.
Comment #8
lauriiiCommitted 0e8a558 and pushed to 10.1.x. Thanks!