Closed (duplicate)
Project:
Drupal core
Version:
main
Component:
locale.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Mar 2019 at 10:30 UTC
Updated:
1 Feb 2026 at 21:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
claudiu.cristeaPatch
Comment #3
andypostPlease remove composer changes from patch
Comment #4
claudiu.cristeaOuch! Thank you @andypost :)
Comment #6
andypostplease use \Drupal::service(), as there's no conclusion on this yet, this is recommended way to prevent issues on container rebuild in tests
Comment #7
andypostRelated discussion #2066993: Use magic methods to sync container property to \Drupal::getContainer in functional tests
Comment #8
claudiu.cristeaFixed.
Comment #9
claudiu.cristeaComment #11
andypostbtw reset cache only used when some data is set, so probably this method could be no-op and reset cache inside set()
should be 8.8.0 now
Comment #12
claudiu.cristeaGood point. However, we need to keep also resetCache() as it is, a 3rd party module might have used this
drupal_static_reset('locale_translation_get_projects').Comment #13
andypostLet's move it to private|protected method cos this will be refactored soon and makes this class unit testable
Comment #14
claudiu.cristeaMove what, the whole method?
Comment #15
andypostMove part which using to load inc file for constant and function
Comment #18
hardik_patel_12 commented"deprecated in Drupal 8.8.0 " should be incremented to 9.1.0" and also changed to "and will be removed from Drupal 10". Kindly review a new patch.
Comment #20
hardik_patel_12 commentedSolving test case.
Comment #21
andypostProbably this is great place for memory cache
Comment #22
hardik_patel_12 commentedComment #25
sutharsan commentedThe conversion to service methods is a good step. But in my opinion this patch makes it too complicated by mixing non-essential refactoring into it.
For this and other deprecation messages, Drupal version should be updated. Also the message pattern should follow https://www.drupal.org/project/coding_standards/issues/3024461.
This refactoring is personal preference. Keep this refactoring out of this issue, it makes the patch harder to review.
This refactoring is personal preference. Keep it out of this issue, it makes review harder.
Ditto
I'd rather see this replaced by a ::clearObjectCache() method. That will tell _why_ this line is there.
This issue is not the place for this refactoring. It makes the issue more difficult to refactor.
The comment and the variable name have changed. Do not refactor in this issue, it makes it harder to review.
A part of the comment got removed, the param description was changed, function signature (default value) was changed. This makes the patch harder to review.
Comment #26
ravi.shankar commentedAdded reroll of patch #20 for Drupal 9.3.x.
Comment #27
ravi.shankar commentedNeed to work on custom commands fails also.
Comment #28
ravi.shankar commentedHere I have tried to address the custom command fails of patch #26.
Also tried to address #25.1, 2, 3, and 4 points of comment #25.
Still needs work for remaining points.
Comment #34
nicxvan commentedI think this should be closed as a duplicate in favor of the newer one.
Usually we'd update the older one with more history, but I think there is a need to do the full file in one go since there are circular dependencies.
I'll just postpone this for now.
Comment #35
nicxvan commentedThank you everyone for working on this. I'm going to close this as a duplicate since I think the other one will likely get in first.
All closed issues now grant credit and I've taken care of adding credit for contributions here thanks!
Typically we would use the older issue but somehow I missed this one when I searched and the other is nearly RTBC