Commit 32249f1b authored by chr.fritsch's avatar chr.fritsch Committed by Primsi

Issue #2830801 by chr.fritsch: Replace entity in form of IEF widget

parent 449af843
......@@ -202,6 +202,10 @@ class DropzoneJsEbWidget extends WidgetBase {
}
}
if ($form['widget']['upload']['#max_files']) {
$files = array_slice($files, -$form['widget']['upload']['#max_files']);
}
$form_state->set(['dropzonejs', $this->uuid(), 'files'], $files);
return $files;
......
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