Add paragraph bundle to widget forms to allow easier editing of paragraph forms

Created on 10 April 2017, over 7 years ago
Updated 25 January 2023, almost 2 years ago

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.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia gordon Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024