Allow reference to all entity types

Created on 10 June 2025, 14 days ago

Problem/Motivation

I need a field that can refer to all entity types, including future ones.
But without going through all the entity types and clicking on all the bundle checkboxes.

✨ Feature request
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡©πŸ‡°Denmark Birk

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

Comments & Activities

  • Issue created by @Birk
  • πŸ‡©πŸ‡°Denmark Birk

    Made a proof of concept, that adds an All items checkbox, I've not done any thorough testing, and not even sure it's the right approach, but it works in my simple use case.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    You can achieve this by using the 'exclude' option. I.e. rather than 'including', exclude.
    This was one of the original use cases for this module, which was developed when I wrote Entity Pilot.
    You can see it in action in Entity Pilot module here

  • πŸ‡©πŸ‡°Denmark Birk

    The problem with using "exclude" and not selecting anything is I need to go over all the allowed bundles and check them before I can save the field instance.

    Maybe the fix would be making the bundle selection optional.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Hey, I'm not sure what you're saying - is there a bug in the UI that prevents you from saving or something?
    Can you provide a screenshot/screenrecording to explain further?

  • πŸ‡©πŸ‡°Denmark Birk

    I'm prevented from saving, because I haven't selected which bundles is allowed for each of the entity types I want to reference.

    The screenshot if from a clean Drupal install on simplytest.me running DER 3.2.1

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Ah, then that is a bug.

Production build 0.71.5 2024