Skip to content
Snippets Groups Projects
Commit fd23cc5c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2358409 by tien.xuan.vo, Haza: image_image field element is processed 2 times

parent 48626c0a
Branches
Tags
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
......@@ -127,8 +127,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
$extensions = array_intersect(explode(' ', $extensions), $supported_extensions);
$element['#upload_validators']['file_validate_extensions'][0] = implode(' ', $extensions);
// Add all extra functionality provided by the image widget.
$element['#process'][] = array(get_class($this), 'process');
// Add properties needed by process() method.
$element['#preview_image_style'] = $this->getSetting('preview_image_style');
$element['#title_field'] = $field_settings['title_field'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment