Commit fd23cc5c authored by alexpott's avatar alexpott
Browse files

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

parent 48626c0a
......@@ -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'];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment