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
Comment #2
dave reidComment #3
dave reidThis would mean that we probably need to get rid of the 'target_bundles' setting and use EntityReferenceSelection instead.
Comment #4
dave reidInstead 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.
Comment #5
dave reidDe-escalating and postponing based on #2705893: [entity_browser] Allow the dialog form to be swapped via plugin to support alternate workflows (decouple Entity Browser handling from EntityEmbedDialog)
Comment #6
wim leersUpdating title to reflect this is blocked on 1 issue: #2705893: [entity_browser] Allow the dialog form to be swapped via plugin to support alternate workflows (decouple Entity Browser handling from EntityEmbedDialog).
Comment #7
wim leers#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).
Comment #8
oknate