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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | google_place_autocomplete_hook_deprecated_3377663.patch | 854 bytes | sunil chaurasiya |
Comments
Comment #2
sunil chaurasiya commentedComment #3
durum commentedComment #4
durum commentedComment #5
tregonia commented+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.
Comment #6
phannphong commentedThis 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.