Closed (fixed)
Project:
Entity Browser
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Aug 2017 at 15:24 UTC
Updated:
25 Oct 2017 at 09:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
marcoscanoFirst stab at moving and refactoring the plugin. I'm including also a diff of both plugin classes to make it easier to review the changes.
I haven't done any work on the tests though.
Comment #3
mstef commentededit: The error I posted was stemming from dropzone.
Comment #4
mstef commentedLooks like the only upload widget option is "Upload images as media items". Can we get support for other media bundles?
Comment #5
marcoscano@mstef I don't understand your comment from #3, did you edit it and removed the original content?
Re: #4, the purpose of this issue is to ensure parity between the scenario "Media Entity + Media Entity Image + Entity Browser" and "core Media + Entity Browser", after Drupal 8.4.x and higher. So the only work here is to ensure the widget that before was provided by Media Entity Image will still be available, now as part of the Entity Browser module.
If you need something else, the best approach would be to open a feature request as a separate issue.
Comment #6
mstef commentedYou can disregard everything I said. I had some confusion.
Thanks for the patch.
Comment #7
garphyApologies if i'm mixing up thing here but isn't there a need to also port Media Entity Browser to the new "Media in core" API ?
I just installed a dev 8.5.x Core with patched Entity Browser and when I try to select "Entity browser" as a widget for my ER field, it says "No entity browser selected"
Unless I'm mistaken, there's yet no way to add Media Entity Browser into the mix right now as it stills depends on Media Entity which we wouldn't enable in this case.
Comment #8
marcoscano@garphy Yes, Media Entity Browser will need a separate issue for dealing with its upgrade to the new branch. I just opened #2906068: Create a new branch compatible with the new Media in core API for that. This issue is about upgrading Entity Browser itself.
Thanks!
Comment #9
chr.fritschI tested it functional and it worked very well. Looked over the code and just found one minor:
Should be drupal:media (>= 8.4)
Comment #10
marcoscanoworking on it, also updating the tests.
Comment #11
marcoscanoAddressed #9 and tried to update the tests. Let's see what the testbot has to say about it.
Comment #13
chr.fritschTrying to fix the tests. Let's see...
Comment #14
jzavrl commentedCan confirm the patch from #13 works great for me.
Comment #15
slashrsm commentedCommitted, pushed new branch and rolled the first alpha release. Thanks!