function thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter in Thunder 8.2
Same name and namespace in other branches
- 8.5 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
- 8.3 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
- 8.4 modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
- 6.2.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
- 6.0.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
- 6.1.x modules/thunder_paragraphs/thunder_paragraphs.module \thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter()
Implements hook_field_widget_WIDGET_TYPE_form_alter().
Used for Classic Paragraphs widget.
File
- modules/
thunder_paragraphs/ thunder_paragraphs.module, line 44 - Contains paragraphs related hook implementations and functions.
Code
function thunder_paragraphs_field_widget_entity_reference_paragraphs_form_alter(&$element, FormStateInterface $form_state, $context) {
_thunder_paragraph_attach_ief_submit($element, [
'top',
'links',
'collapse_button',
]);
}