Support multiple implementations for hook_field_widget_third_party_settings_form

Created on 25 November 2024, 5 months ago

Problem/Motivation

Since the flood gates are open for multiple implementations of the same hook in the same modules, the hook field_widget_third_party_settings_form doesn't support that since it expects each module to have only one implementation

Steps to reproduce

Use the Hook attribute twice in the same module

#[Hook('field_widget_third_party_settings_form')]                                                                                                                                                             
  public function fieldWidgetThirdPartySettingsForm(WidgetInterface $plugin, FieldDefinitionInterface $field_definition, $form_mode, $form, FormStateInterface $form_state) {

adding different form elements.

Proposed resolution

Merge all elements of the same module in the same form array

Remaining tasks

Code solutions
Add tests

User interface changes

None

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

field system

Created by

πŸ‡ͺπŸ‡ΈSpain rodrigoaguilera Barcelona

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024