Problem/Motivation
During implementation of a custom entity I debugged the entity reference field autocomplete functionality, as it was not working.
When referencing a new custom entity, the errorThere are no entities matching "Entity label"
pops up.
Proposed resolution
Beside the right configuration (where different are possible). The code for selecting the bundle is not triggered at all.
Remaining tasks
There are a lot of tasks open about entity creation. Fe. a user reference field does not work.
The entity reference fields should store they're bundles in auto_create_bundle for "bundle-less" or in target_bundles for ones having multiple bundles.
This issue is thought as quick fix. The remaining task shall be done in subsequent (existing) issues, fe.
#2700411: "Create referenced entities if they don't already exist" option on entity reference field shouldn't be available for users
User interface changes
None.
API changes
None.
Data model changes
None.