Changes in additional widget alters are always overridden.

Created on 14 June 2023, almost 2 years ago
Updated 25 September 2023, over 1 year ago

Problem/Motivation

I have custom functionalities in the following hooks
hook_field_widget_form_alter()
hook_field_widget_single_element_form_alter()

And the changes that I make to the $element are not respected. This is because the $element object is overridden always in the paragraphs_sets_field_widget_complete_form_alter

Steps to reproduce

Change element structure in hook_field_widget_form_alter and the changes are not visible.

Proposed resolution

Do not override $element but load the existing reference of the $element.

Remaining tasks

Review

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024