Skip to content
Snippets Groups Projects
Commit fc750a42 authored by catch's avatar catch
Browse files

Issue #1884148 by sun, swentel: Fixed field widget disappears when increase...

Issue #1884148 by sun, swentel: Fixed field widget disappears when increase cardinality for image to allow multiple values.
parent 473df01a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -141,6 +141,7 @@ protected function formMultipleElements(EntityInterface $entity, array $items, $
// The group of elements all-together need some extra functionality after
// building up the full list (like draggable table rows).
$elements['#file_upload_delta'] = $delta;
$elements['#type'] = 'details';
$elements['#theme'] = 'file_widget_multiple';
$elements['#theme_wrappers'] = array('details');
$elements['#process'] = array('file_field_widget_process_multiple');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment