Problem/Motivation

- Function hook_field_widget_multivalue_form_alter is deprecated and will be removed in D10
- When there is a Required entity reference field in Form Display page with multiple values allowed and the label overridden with empty value, Drupal still prints an asterisk (*) in the -tag

Proposed resolution

- Attached patch fixes the deprecated fn issue
- Attached patch adds a form_alter hook that will ensure that fields that have their titles set to empty are hidden and no asterisk will be printed

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

j-vee created an issue. See original summary.

j-vee’s picture

irfan.gul made their first commit to this issue’s fork.

nikita_tt’s picture

Hi @j-vee. Thanks for the patch but I'm not sure about the asterisk fix. I think this should be a separate issue.

jannakha’s picture

Version: 8.x-1.6 » 8.x-1.x-dev
Status: Needs review » Closed (outdated)

8.x-1.x-dev only supports Drupal 9 which is deprecated

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.