Hi here.
First of, thank you for this module. It's a great initiative and I hope it will get in core at some point.

I think it would be really useful to be able to use config_views to filter entity_reference fields.

Use case
I want to create a field to display Blocks.
I want to filter the available Blocks by View (Entity Reference).

Step to reproduce
Create a View:

  • Create a new config_view to list Block
  • On this View, create an Entity Reference display showing at least the Block ID

Create a field:
Example of field config to test the use case.

  • Create a new field of type entity_reference
  • In field storage, select Block
  • In field settings, select "Filter by a Config View"
  • In the display mode, change the field widget from "Autocomplete" to be "Select list"

I've attached a draft patch for test and review.
I've only been able to test it for a View of type Entity Reference retrieving Blocks entities.

Comments

matthieuscarset created an issue. See original summary.

geoanders’s picture

Version: 8.x-2.x-dev » 9.1.x-dev
geoanders’s picture

Version: 9.1.x-dev » 9.0.x-dev
matthieuscarset’s picture

Status: Needs review » Closed (won't fix)

Closing this issue as apparently is won't get fixed.

brad.bulger’s picture

Status: Closed (won't fix) » Active

Unless one of the maintainers is saying that this will never be done, closing it as "won't be fixed" after only a year is premature.