- Issue created by @jwilson3
I have tried to solve the issue and created the patch please review it and let me know
- 🇪🇨Ecuador jwilson3
A proper refactoring would remove the hook_form_alter() and the process callback, and move the logic therein into hook_field_widget_WIDGET_TYPE_form_alter() hooks.
I'm not entirely certain what problem you're trying to solve with the patch in #3, so it would be helpful if you could explain the problem and the solution.
Also, we need to be using Merge Requests, not patches.
- 🇪🇨Ecuador jwilson3
Note:
hook_field_widget_WIDGET_TYPE_form_alter
was deprecated in Drupal 9.3, we should usehook_field_widget_single_element_WIDGET_TYPE_form_alter
instead.I'm self-assigning this to start proof of concept explorations...