Needs work
Project:
Drupal core
Version:
main
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2025 at 02:52 UTC
Updated:
7 May 2026 at 14:57 UTC
Jump to comment: Most recent
The scope of #2448545: Modernize form select option helpers was getting too large and should likely use an enum anyway so we can add to it if we need to.
Convert _none to an enum
Replace all instances
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
nicxvan commentedComment #3
sourav_paulChecking...
Comment #6
sourav_paulComment #7
smustgrave commentedhave not reviewed but has pipeline issues.
Comment #9
sourav_paulpipeline issues has been fixed.
Comment #10
dcam commentedThere is at least one usage that needs to be converted in each of the following files:
core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.phpcore/modules/responsive_image/src/ResponsiveImageStyleForm.phpcore/modules/options/options.api.php(since this has example code I think it's important to make sure this is showing a best practice)There are also usages in tests. I'm not sure whether it's appropriate to replace those or not.