Fixed
Project:
Drupal core
Version:
11.x-dev
Component:
user.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2026 at 18:27 UTC
Updated:
9 Sep 2026 at 13:21 UTC
Jump to comment: Most recent
Split off from #3580682: [pp-1] Create a service for user account cancellation. Convert cancel methods to plugins
User has only a few functions left, let's convert them here and update the api in a follow up.
user_cancel
_user_cancel
_user_cancel_session_regenerate
user_cancel_methods
N/A
There is a new AccountCancellation service.
::cancel::cancelMethodsThere are two batch callbacks converted:
::regenerateSession::cancelAccountReview
N/A
N/A
AccountCancellation::cancel
AccountCancellation::cancelMethods
N/A
N/A
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
nicxvan commentedComment #4
nicxvan commentedComment #5
nicxvan commentedComment #6
danielvezaReviewed this one. Node IDs in the Docblock need changing. Left one other comment about it being a little odd that some of these are public APIs but I don't feel strongly about it, especially since this is just a replacement of exisiting functionality. Maybe we think about that once this is in.
Not too many test changes needed as part of this either. Makes me wonder if we need to check we have proper coverage.
Comment #7
nicxvan commentedThanks for the review! I updated the change record links.
I also replied to your batch question.
There is a follow up to redesign the api that adds a ton of testing, but we have not been adding testing to these conversions unless we are changing the api surface which this does not.
The test failure is random: builds/core/modules/system/tests/src/FunctionalJavascript/ThemeSettingsFormTest.php:85
Comment #8
danielvezaThanks for updating! All feedback addressed. I think this is ready for RBTC now.
Comment #9
godotislateThanks for all the work on this. It's close, but I have a few comments on the MR.
Comment #10
nicxvan commentedI addressed all of the feedback, it was pretty minimal so I think self RTBC is ok, I created the follow up. #3621541: [pp-1] Create closure properties for UserController
Comment #11
amateescu commentedReviewed and posted a few code suggestions, the most important one being that we shouldn't break the 11.4 deprecation from
AccountSettingsForm.Comment #13
amateescu commentedCommitted and pushed 9e8373659f2 to main. Thanks!
We'll need a 11.x MR :)
Comment #15
nicxvan commentedBackport was clean except entity resource constructor and the services yml.
It was pretty straightforward, I think I can mark it once tests pass.
Edit: I need to add the new argument to the jsonapi services.
Comment #16
nicxvan commentedThis is ready!
Comment #18
amateescu commentedCommitted c615ff1 and pushed to 11.x. Thanks!
Also published the CR.