hook_field_widget_multivalue_form_alter() is removed in D10
Problem/Motivation
See the Streamline field widget hooks (3180429) change record: hook_field_widget_multivalue_form_alter() was removed in Drupal 10, in favor of hook_field_widget_complete_form_alter() so form_display_visibility_field_widget_multivalue_form_alter() in form_display_visibility.module is not called anymore. Therefor some (or all?) functionality of this module is not working anymore in Drupal 10.
Steps to reproduce
1. Install Drupal 10+
2. Install Entity Form Display Visibility
3. Add a breakpoint in form_display_visibility_field_widget_multivalue_form_alter() in form_display_visibility.module
The hook is never called.
Proposed resolution
Refactor to use hook_field_widget_complete_form_alter().
Remaining tasks
Testing all possible fields and setting combinations.
User interface changes
None.
API changes
None.
Data model changes
None.
Edited by drupalbot