- First commit to issue fork.
- Merge request !4091Issue #3249599: Add support for PHP 8.1 Backed Enums in Select, Checkboxes, Radio elements → (Open) created by duadua
- last update
about 2 years ago Custom Commands Failed - Status changed to Needs work
about 2 years ago 7:55am 1 June 2023 - last update
about 2 years ago Custom Commands Failed - last update
about 2 years ago Custom Commands Failed - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 2 years ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 2 years ago Not currently mergeable. - last update
about 2 years ago Custom Commands Failed - last update
about 2 years ago Custom Commands Failed - last update
about 2 years ago Custom Commands Failed - last update
about 2 years ago Custom Commands Failed - Status changed to Active
about 2 years ago 2:07am 20 June 2023 - 🇦🇺Australia dpi Perth, Australia
@duadua do you have any narrative to add or is your MR pure experimentation?
I'd suggest creating a personal patch issue if its the latter, for example 📌 [ignore] @dpi's patch testing issue Active
@dpi
That's a great recommendation. I'll do that and experiment a bit more first, before posting a MR into this issue.@dpi
To be honest I am confused whether to create MRs against 10.1.x or 11.x at this point.
- Status changed to Needs work
about 2 years ago 11:04pm 26 June 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Left some comments on the MR
We have some failing custom commands here (likely linting)
- First commit to issue fork.
- 🇦🇺Australia acbramley
In 📌 Introduce and make use of NodePreview enum, to replace node related usage of DRUPAL_DISABLED, DRUPAL_OPTIONAL and DRUPAL_REQUIRED constants Active I'm looking to add a trait that allows you to do this very easily (although not quite like what is being proposed in the current MR).
The OptionsEnumTrait adds
::asOptions
to an enum and forces alabel
method to be implemented. You can then useMyEnum::asOptions
in the FAPI#options
key, and also for things like field storage definitions with theallowed_values_function
key