We have a custom form with an image field and want to use the
entity_browser widget from the File Entity Browser module, however it isn't displaying the uploaded content.
The code we have so far:
$fields['testing'] = [ '#type' => 'container', 'widget' => array( '#title' => t('Test'), '#description' => t('The content to be linked in the menu.'), '#type' => 'entity_browser', '#entity_browser' => 'browse_files_modal', '#field_widget_remove' => true, '#open' => true, '#selection_mode' => 'selection_edit', '#preview_image_style' => 'thumbnail', '#field_widget_edit' => true, '#view_mode' => 'default' ) ];
The "Browse files" button appears and clicking this opens the correct popup to select files / browser library. The problem comes next as the uploaded files are not listed out after uploading (No Preview / Filename / Metadata / Operations etc). There are no errors on the page.