- First commit to issue fork.
- last update
7 months ago 2 pass - 🇫🇷France arousseau
Using this in one of our project, we ran into a small issue. The order along which the options are displayed by the select list seems to be a bit unpredictable.
This could be easily solved by forcing a sort order on the search attribute. Added a modification to the MR.
- Status changed to Needs review
7 months ago 8:35am 23 April 2024 - 🇬🇧United Kingdom Eli-T Manchester
Thanks for contributing! I should have time to take a look at this next week.
- 🇫🇷France arousseau
I reworked this in order to make use of
OptionsProviderInterface
as explained in\Drupal\Core\Field\Plugin\Field\FieldWidget\OptionsWidgetBase
I tried to stick to the way things are done in core entity_reference field type.
This should allow the use of
hook_options_list_alter
to sort the display order of the options too. - 🇫🇷France arousseau
I created ✨ Use OptionsProviderInterface to allow options widgets usage Active to handle adding the
OptionsProviderInterface
implementation to the field type.Once it is merged, we'll only need to add the following to the existing
jsonapi_reference_field_widget_info_alter
, to allow for the use of a select list :$info['options_select']['field_types'][] = 'typed_resource_object';
- Status changed to Needs work
2 months ago 8:03am 16 September 2024 - Merge request !26Issue #3315187: Added options_select widget support. → (Merged) created by arousseau
- 🇫🇷France arousseau
arousseau → changed the visibility of the branch 3315187-Add_select_list_widget_2_0_x to hidden.
- 🇫🇷France arousseau
I created a new branch + MR for this simple addition. It should be good to go!
-
eli-t →
committed cca8e3f7 on 2.0.x authored by
arousseau →
Issue #3315187: Added options_select widget support.
-
eli-t →
committed cca8e3f7 on 2.0.x authored by
arousseau →
Automatically closed - issue fixed for 2 weeks with no activity.