- 🇫🇷France arnaud-brugnon
Great news
https://www.drupal.org/node/3180429 →
hook_field_widget_WIDGET_TYPE_form_alter no longer exist.
Use hook_field_widget_single_element_form_alter instead
This issues started as an ask for new hooks, but has been simplified to updating the widget form arrays to provide the paragraph bundle names.
hook_field_widget_WIDGET_TYPE_form_alter()
can be used to alter paragraph forms using with type name paragraphs
for fields using the new experimental widget or entity_reference_paragraphs
for the classic inline forms.
Original suggestion:
Add new hooks
hook_form_paragraphs_subform_alter()
hook_form_paragraphs_subform_TYPE_alter()
hook_form_paragraphs_subform_WIDGET_alter()
hook_form_paragraphs_subform_WIDGET_TYPE_alter()
When trying to form alter paragraphs for an individual type of paragraph is extremely difficult having to pick through the parent forms to and to edit a single type of form has a lot of overheard.
With these 2 alter hooks you can quickly alter the subform for and not take up too much processing time.
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Great news
https://www.drupal.org/node/3180429 →
hook_field_widget_WIDGET_TYPE_form_alter no longer exist.
Use hook_field_widget_single_element_form_alter instead