Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When creating an entity reference field to an ECK entity, the "Type of item to reference" field lists the Entity Type under the "Other" optgroup. I think this is because the Group Label is usually set as an annotation, but admittedly I don't know D8 that well yet. It's not a big issue but I think the Entity Type should probably be listed as an optgroup, unless I'm getting the intended functionality wrong? I've attached an image.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2554171 after.png | 56.56 KB | akalata |
#3 | 2554171 before.png | 48.16 KB | akalata |
#3 | 2554171-3.patch | 1.17 KB | akalata |
Type of item to reference.png | 21.13 KB | kurtfoster |
Comments
Comment #2
akalata CreditAttribution: akalata commentedHi kafmil,
I agree that it's unclear. The definition for the type of ECK entity (aka a bundle) is itself an entity -- and my guess is that since neither the definitions or the option for "an entity of this type" themselves are classified as Content or Configuration, they both show up under Other.
However, since both the bundle definitions and the and "entity of X type"s are defined dynamically, I'm not sure if it's possible to give those a better classification.
Comment #3
akalata CreditAttribution: akalata commentedThis patch categorizes the entity types as configuration, and the bundle types as content. Also attached quick before-and-after screenshots.
Comment #5
legolasboCommitted and pushed to 8.x-1.x thanks!