Closed (fixed)
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Feb 2026 at 15:34 UTC
Updated:
11 Mar 2026 at 21:40 UTC
Jump to comment: Most recent
Remove all D12 deprecated code from the mentioned libraries.
Remove all D12 deprecated code from the mentioned libraries.
Make sure tests are passing before review.
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:
Comments
Comment #3
smustgrave commentedThere are some todos in the tests but will be covered by #3468921: Convert trigger_error in VariationCache into a LogicException
Comment #4
smustgrave commentedThis one is ready.
Comment #5
dcam commentedCan you verify that
core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryTest.phpshould be deleted? The test still passes. The mock object in thesetUp()was updated to beLibraryDiscoveryCollectorinstead ofLibraryDiscovery. But theCoversClassattribute was not updated. If it should be kept, then maybe we should update the file/class name too.Comment #6
dcam commentedOtherwise this looks good to me. All of the deprecations have been removed.Comment #7
dcam commentedIn addition to the question in #5, I found some other things:
core/lib/Drupal/Core/Cache/ChainedFastBackend.php,core/lib/Drupal/Core/Cache/NullBackend.php, andcore/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.phpstill haveinvalidateAll()methods. I don't know whether these are supposed to remain in place or not. But even if they are valid, their docblocks are not. They all have@inheritdocdocblocks, which doesn't work anymore because the methods aren't overriding anything.invalidateAll()is mentioned in a docblock in line 502 ofcore/core.api.php.A grep for the
LibraryDiscoveryclass revealed these issues:Comment #8
smustgrave commentedPushed some of the feedback but need to look into the service the message seems wrong.
Comment #9
dcam commentedRight? I didn't get it, but I also didn't look into it.
Comment #10
smustgrave commentedOkay I think the message meant to say it was replaced by library.discovery. The service above it.
Comment #11
dcam commentedThere's an open question in #5.
I mentioned https://git.drupalcode.org/project/drupal/-/blob/main/core/lib/Drupal/Co... in #7, but that grep output was badly formatted. So that's on me.
Thank you for figuring out what was up with that service deprecation message. Your explanation seems likely to me.
Comment #12
smustgrave commentedBelieve it's good to be deleted. In the same folder there is LibraryDiscoveryCollectorTest which appears identical. Think the original test was updated to LibraryDiscoveryCollector was to match the service change.
Comment #13
smustgrave commentedRebased
Comment #14
dcam commentedI'm sorry, @smustgrave. I keep saying this badly:
There is a lingering reference to the deleted
LibraryDiscoveryclass in theLibraryDiscoveryParserclass. It needs to be fixed. See https://git.drupalcode.org/project/drupal/-/blob/main/core/lib/Drupal/Co....I apologize for not being 100% clear about it.
Comment #15
smustgrave commentedWill get to it
Comment #16
smustgrave commentedRemoved that reference, was nervous it was going to complain about 81 characters but looks like we are good.
Comment #17
dcam commentedI'm sorry @smustgrave, but the referenced class name needs to be changed. I left a suggestion.
Comment #18
dcam commentedThank you. I feel like all I've done lately is point out nitpicky things for you to change.
Comment #19
catchOne test being removed that I'm pretty sure needs to stay. Can probably double check by restoring the test and see if things are still green afterwards.
Comment #20
smustgrave commentedI added the test back, I did have to update the classCover attribute since it's not covering LibraryDiscovery
Comment #22
catchTest changes look good. Committed/pushed to main, thanks!