Problem/Motivation
Views generated using this module are not compatible with core/modules/views/src/Plugin/EntityReferenceSelection/ViewsSelection.php because that expects there to be Entity with a bundle, rather than a Config Entity.
Steps to reproduce
- Create a View with Roles configuration list
- Create a Node with reference field to Role configuration
- Select 'Views: Filter by an entity reference view' instead of Default selection in the reference field configuration
- Select the View created in (1)
- Fatal error
Proposed resolution
- Extend ViewsSelection to make it compatible
- Alternatively I would be happy to make this into a Contrib module extending this module if you prefer
Remaining tasks
MR
User interface changes
Views relying on this module are now able to be used as reference selection Views
API changes
N/A
Data model changes
N/A
Issue fork config_views-3503576
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
scott_euser commentedSee my comment on the MR.
Otherwise its a fairly tiny Plugin.
Let me know if you prefer I create this as a separate contrib module extending this.
Comment #5
scott_euser commentedOnce reviewed that others are happy with the approach, will add test coverage
Comment #6
scott_euser commentedNeeds test coverage
Comment #7
scott_euser commentedAdded test coverage + fixed some schema validation errors in the wider module that that revealed