This will make it possible to swap out the basic selection with whatever entity reference fields support, like autocomplete, select lists, and eventually the Entity Browser module's widget. It should also be possible to use File and Image field widgets as well if entity_type == file. We should also make sure we're supporting EntityReferenceSelection as well, just like entity reference fields do.

Comments

Dave Reid created an issue. See original summary.

dave reid’s picture

Title: Allow entity reference field widgets to be used for selection » Allow choice of entity reference field widget to be used for selection
dave reid’s picture

This would mean that we probably need to get rid of the 'target_bundles' setting and use EntityReferenceSelection instead.

dave reid’s picture

Priority: Major » Critical

Instead of making a generic way to swap the selection, we've added more hard-coded settings related to entity browser. We need to get moving on this and remove the entity-browser specific configuration from the embed buttons ASAP.

dave reid’s picture

wim leers’s picture

Title: Allow choice of entity reference field widget to be used for selection » [PP-1] Allow choice of entity reference field widget to be used for selection
wim leers’s picture

#2998005: [PP-1] Support Drupal core's Media Library would benefit from this too: it'd allow existing sites to opt in to that alternative selection method. At least, if that's indeed the intended purpose here — not sure yet how this relates to #2705893: [entity_browser] Allow the dialog form to be swapped via plugin to support alternate workflows (decouple Entity Browser handling from EntityEmbedDialog).

oknate’s picture