- Issue created by @stephane888
I want to use layout builder to display entity 'commerce_wishlist'. When a click in "manage layout", i have this error :
rupal\Core\Entity\EntityStorageException: Missing bundle for entity type profile in Drupal\Core\Entity\ContentEntityStorageBase->doCreate() (line 123 of core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).
Drupal\Core\Entity\ContentEntityStorageBase->create() (Line: 421)
Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection->createNewEntity() (Line: 498)
Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem::generateSampleValue() (Line: 253)
Drupal\Core\Field\FieldItemList->generateSampleItems() (Line: 245)
Drupal\Core\Entity\ContentEntityStorageBase->createWithSampleValues() (Line: 55)
Please change :
'target_bundles' => ['customer']
to
'target_bundles' => ['customer' => 'customer']
Active
Code