- Issue created by @Austin986
- π§πͺBelgium gillesv
We're experiencing the same issue, and it's breaking essential functionality. "hook_field_widget_paragraphs_form_alter" is never triggered.
- π¨π¦Canada Austin986
@gillesv I did some researches and found that these hooks are deprecated.
You need to usehook_field_widget_single_element_WIDGET_TYPE_form_alter()
hook_field_widget_complete_WIDGET_TYPE_form_alter()
Here is API doc:
https://api.drupal.org/api/drupal/core%21modules%21field%21field.api.php/10 - Status changed to Closed: outdated
over 1 year ago 3:56am 31 May 2023 - Status changed to Active
7 months ago 4:21pm 8 May 2024 - πΊπΈUnited States AaronBauman Philadelphia
None of these are invoked when the paragraph form is rendered:
- hook_field_widget_single_element_paragraphs_form_alter
- hook_common_field_widget_complete_paragraphs_form_alter
- hook_field_widget_paragraphs_form_alter
Can someone please advise what is the up to date method of altering the paragraph form?
Seems like this should be in paragraphs.api.php
- Status changed to Fixed
6 months ago 12:58pm 27 May 2024 - π¨πSwitzerland berdir Switzerland
This is a core change: https://www.drupal.org/node/3180429 β , I know they work because we adjusted our code when updating to Drupal 10, we have working hook impelmentations like
MODULE_field_widget_single_element_paragraphs_form_alter
Automatically closed - issue fixed for 2 weeks with no activity.
- πͺπΈSpain enchufe Spain
After updating Drupal core to version 10.3 these hooks stopped working, as a solution I implemented the patch of this issue π¬ Create alter hook hook_paragraphs_widget_alter() Fixed and updated the hooks.