- Issue created by @joachim
The specific plugins for node, media, and terms check for published entities and only allow referencing published ones. (Though see 🐛 User can't reference unpublished content even when they have access to it Needs work ).
However, if another entity type implements EntityPublishedInterface, there is no such checking.
1. Create a custom entity type which uses EntityPublishedInterface
2. Make a reference field
3. Create unpublished entities
4. These are available in the field
Change the DefaultSelection to check for published status.