Make this module work with Views Selection from Core

Created on 31 January 2025, about 1 month ago

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

  1. Create a View with Roles configuration list
  2. Create a Node with reference field to Role configuration
  3. Select 'Views: Filter by an entity reference view' instead of Default selection in the reference field configuration
  4. Select the View created in (1)
  5. Fatal error

Proposed resolution

  1. Extend ViewsSelection to make it compatible
  2. 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

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024