Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
entity system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2026 at 14:57 UTC
Updated:
3 Mar 2026 at 09:00 UTC
Jump to comment: Most recent
Comments
Comment #2
claudiu.cristeaLet's see where this goes
Comment #4
claudiu.cristeaComment #5
claudiu.cristeaComment #6
claudiu.cristeaComment #7
claudiu.cristeaIS fix
Comment #8
claudiu.cristeaComment #9
claudiu.cristeaComment #10
claudiu.cristeaComment #11
claudiu.cristeaComment #12
claudiu.cristeaThis ready for review
Comment #13
smustgrave commentedThis seems like it could be a disruptive change based on all the tests that had to be updated to get the MR green.
Also seems like it should be broken up some
Comment #14
nicxvan commentedI'm not sure this needs to be broken up too much, most test changes were simplifications.
I think some of the protected removals maybe can be removed in a follow up.
Comment #15
claudiu.cristea@smustgrave
@nicxvan
Not sure which...
Again, even it's not covered by BC policy, I kept DefaultHtmlRouteProvider::getEntityTypeIdKeyType(), as deprecated, because there's a chance that some contrib/custom code might use it
I hope I've answered both remarks.
Comment #17
nicxvan commentedI had another fresh look at this, I think the scope is fine, I had a brief chat with @smustgrave about it as well.
I have a couple of new comments and one question in light of my new review.
This simplifies the check quite a bit, I think it deserves it's own CR like it has.
I think the CR needs some work, an example or two from this CR, also I'm not sure what
Some derved changes:means in the CR.Pretty close, but needs work.
Comment #18
claudiu.cristeaComment #19
berdirSome minor remarks on the MR.
Comment #20
claudiu.cristeaThank you @nicxvan ands @berdir. I've addressed the remarks.
Comment #21
berdirThis looks good to me, I wasn't aware that we have many integer id checks. I left one thread active on the MR to highlight for committers.
I was wondering if we should put this only on ContentEntityTypeInterface, but I think there is value in having it as an API on config entity types too, entity reference fields for example can be against config entities and they should then always return FALSE, so we don't need another condition there.
Comment #24
catchAlso wondered a bit about the lack of dependency injection here. I can't think of anywhere better to put this, and if we do, we could move it then, so let's go ahead. Committed/pushed to main and 11.x, thanks!
Comment #27
claudiu.cristeaPublished the CR
Comment #28
mondrakeThis commit added two instances of
#[Group('legacy')]attribute usage, that are not correct: https://www.drupal.org/node/3447698Will be fixed in #3497124: Deprecate expectDeprecation(), use PHPUnit's expectUserDeprecationMessage*() instead.