Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
plugin system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2025 at 14:17 UTC
Updated:
22 Jan 2026 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #8
jonathanshawComment #9
jonathanshawComment #10
mxh commentedGood catch. Took a brief look into this and left two minor side notes.
Comment #11
mxh commentedAdded another small note regards the array lookup. Other than that the code changes look good. Unfortunately I have no time to actually test it on a site.
Comment #12
smustgrave commentedAppears to be 1 open threads around the return. If that changes though do wonder if it will need test coverage that the exception is correctly thrown.
Comment #13
jonathanshawI'm not sure what's going on with the tests, I think the fails are unrelated.
Comment #14
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #15
jonathanshawTests pass now, test coverage requested in #12 added, no outstanding feedback. I think this is ready for RTBC.
Comment #16
smustgrave commentedLeft small comments on the MR.
Wonder if this needs a CR?
Comment #17
jonathanshawI don't believe it needs a CR as it is only a minor performance optimisation, is fully BC, and it will be very rare that a class extending DefaultLazyPluginCollection will need or want to do anything to make use of this optimisation. Any child class that doesn't customise the sortHelper will get this optimisation effortlessly, and any class that doesn't won't need it.
Comment #18
dcam commentedI left a comment on the MR. I'm setting the status to Needs Work for that to be handled. I think it's close to being ready.
I agree that this doesn't need a change record.
Comment #20
shalini_jha commentedRebased the MR, fixed conflict, and addressed the feedback. Moving this back to NR.
Comment #21
dcam commentedThe change seems sensible to me. I don't have any additional feedback.
Comment #22
dcam commentedComment #25
catchCommitted/pushed to 11.x, thanks!