Problem/Motivation
In #3127026: Not possible to override an entity type class multiple times, the only Core usage of EntityTypeInterface::getOriginalClass() had been removed.
As suggested in https://git.drupalcode.org/project/drupal/-/merge_requests/12799#note_61...
This is the only usage in core runtime code of this method. We should open a follow-up to deprecate and tell people to using the new method - it is likely any calls to it should change or would be made more robust.
Remaining tasks
- mark method as deprecated
User interface changes
None
Introduced terminology
None
API changes
Method deprecated:
- EntityTypeInterface::getOriginalClass()
Data model changes
None
Release notes snippet
Reference the change record of the parent issue.
Issue fork drupal-3557461
Show commands
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
grimreaperComment #4
grimreaperComment #6
grimreaperI can't access downstream test results.
Comment #7
smustgrave commentedWill still have to land in main first please
Comment #8
smustgrave commentedAnd point to a CR please
Comment #9
grimreaperCR will be the one from the parent issue: https://www.drupal.org/node/3557464
Comment #11
grimreaperMR against main created: https://git.drupalcode.org/project/drupal/-/merge_requests/15526
Comment #12
grimreaperComment #13
smustgrave commentedI think it probably needs its own at this point. That CR is published and released in 11.3 already so the deprecations wouldn’t line up.
Comment #14
grimreaperComment #15
grimreaperHi,
New CR created: https://www.drupal.org/node/3587853
Comment #16
smustgrave commentedCR looks good to me!
Comment #17
alexpottCan you add asserts about the deprecation message otherwise we don't know that the ignore deprecation attribute is actually necessary.
Comment #18
grimreaperComment #19
grimreaperAnd back to needs review.
Comment #20
alexpott\Drupal\Tests\Core\Entity\EntityTypeRepositoryTest we can remove all the mocking of getOriginalClass() from there,
Comment #21
grimreaperDone.
Unrelated test failures.
Comment #22
smustgrave commentedFeedback appears to be addressed.
Comment #23
alexpottCommitted and pushed 5dd07510157 to main and ca4b8596b00 to 11.x. Thanks!
Comment #29
grimreaperThanks for the merge!
The follow up issue had been updated and rebased. So this thread can be definitely done.