hook_field_widget_WIDGET_TYPE_form_alter is deprecated

Created on 16 March 2023, almost 2 years ago
Updated 19 April 2023, almost 2 years ago

Problem/Motivation

hook_field_widget_WIDGET_TYPE_form_alter() was deprecated in Drupal 9 and removed in Drupal 10. The language selector in the node form isn't altered.

Steps to reproduce

1. Login/masquerade as user with restricted language access.
2. Go to add node, languages should be restricted according to allowed languages.

Proposed resolution

Update hook_field_widget_WIDGET_TYPE_form_alter() to hook_field_widget_single_element_WIDGET_TYPE_form_alter()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.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