Problem/Motivation
In the documentation for EntityStorageBase::create it is written:
array $values: (optional) An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.
However there is no guidance on how to set the bundle key.
Steps to reproduce
Proposed resolution
To set the bundle key, it seems like you have to use the 'type' key in the array. This should be specified to make the documentation less ambiguous.
Remaining tasks
Review patch / give feedback
User interface changes
None
API changes
None
Data model changes
None