hook_field_widget_WIDGET_TYPE_form_alter is removed in drupal 10

Created on 13 September 2023, about 1 year ago
Updated 14 September 2023, about 1 year ago

Problem/Motivation

hook_field_widget_WIDGET_TYPE_form_alter is deprecated in Drupal 9 and removed in Drupal 10, because of which the form fields aren't replaced with linkicon's select box in drupal 10.

Proposed resolution

Replace hook_field_widget_WIDGET_TYPE_form_alter with hook_field_widget_single_element_WIDGET_TYPE_form_alter
Patch attached.

EDIT: This patch will break drupal 8 compatibility.

🐛 Bug report
Status

Fixed

Version

1.8

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