There are a few tickets with the aim of allowing contextual changes to the views module view used within the entity browser. Each has merit and each is altering the view slightly differently. The aim of this issue is to see if there is any coordination between the issues that can be achieved and to make sure there isn't needless redundancy.
To do:

Fixed

Comments

oknate created an issue. See original summary.

oknate’s picture

When I first started to look at these issues I wasn't aware of '#widget_context' on the entity browser element.

Check out #2761833: Widget context and validators not passed to Entity Browser element for more information on this feature.

oknate’s picture

Issue summary: View changes
oknate’s picture

After testing again, I think 2832240 makes less sense than 2865928 and 3038854.

Url argument path parts are more fragile than getting target_bundle and parameter from original route. For example on node form, the path /node/add/article changes once the entity is saved. Also, with entity embed, the url path parts would need to be overridden to get the original pages path parts. This is why a hook or the contextual default value view plugin makes more sense.

Even though the module supports url path parts already, I don't think this is the most stable way to get contextual filter arguments to the view.

oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes

Added an updated patch to #3039038: Provide views filter that limits based based on allowed bundles that fixes exposed filters option.

oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes
oknate’s picture

Issue summary: View changes