Problem/Motivation
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.
Steps to reproduce
Proposed resolution
Convert _none to an enum
Replace all instances
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3548830
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 #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.