Problem/Motivation

Google Places Autocomplete Not working Drupal 10
hook_field_widget_WIDGET_TYPE_form_alter is deprecated

Steps to reproduce

1) Install Drupal 10
2) Install google_place_autocomplete 8.x-2.1
3) Add a Google Places Autocomplete field widget on your text field
4) View your content type type address in text field its not working.

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

Comments

Sunil Chaurasiya created an issue. See original summary.

sunil chaurasiya’s picture

Assigned: sunil chaurasiya » Unassigned
Status: Needs work » Needs review
StatusFileSize
new854 bytes
durum’s picture

Issue tags: -
durum’s picture

Status: Needs review » Reviewed & tested by the community
tregonia’s picture

+1 RTBC
Confirming the patch is still good.

Sidenote. This issue is a 100% blocker to a functioning module, but this patch gets it working again.

phannphong’s picture

This patch is not enough to let module works on Drupal 10 because we have an error related to this issue Google Places Autocomplete not working $(...).once is not a function in Drupal10.
So, we need to apply both patches to bring the module works again.