hook_field_widget_multivalue_form_alter() is removed in D10

Created on 15 December 2023, about 1 year ago
Updated 1 January 2024, about 1 year ago

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.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands SanderJP

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024