Fixed
Project:
Drupal core
Version:
11.x-dev
Component:
user.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2026 at 09:58 UTC
Updated:
24 Jul 2026 at 17:31 UTC
Jump to comment: Most recent
Child of #3584794: [meta] Convert core routes to PHP attributes
Routing definitions for user.module controllers will be moved to attributes on the controller where possible.
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 #2
longwaveMaybe we want to wait for the form routing issue to land and expand on this.
Comment #4
smustgrave commentedLooks like good conversions. The stacking of route attributes on top look weird.
Going to mark this as it might be good to get in as I know user.pass.http is trying to be deprecated to might be easier on them to have this worked out.
Will the deprecation go into the attribute?
Comment #5
quietone commentedI read the MR, comments and updated credit. I do agree with coding the conversion first, and then any follow ups to use aliases.
Comment #6
godotislate#3584793: Use PHP attributes for form route discovery is in now, so let's do the form routes too per #2.
Comment #7
longwaveComment #8
smustgrave commentedRoutes look good. For the one mentioned @longwave should there be a follow up?
Comment #9
godotislateMaybe people have other opinions, but I don't think it's worth moving AccountSettingsForm to the Form directory just so we can put a Route attribute on it.
Comment #10
smustgrave commentedNo but maybe for consistency standard? I'm fine either way.
Comment #11
longwaveI think we could do that in a followup if we wanted - it's better to be consistent so perhaps we should look for all forms that aren't in /Form/ and move them all at once.
Comment #15
godotislateCommitted and pushed 29066ac to main and 1f780ee to 11.x. Thanks!