Problem/Motivation
When trying to do a batch operation with "/admin/config/entity-usage/batch-update" I get the error in the title.
Proposed resolution
The problem is that $entity_type_key = $entity_type->getKey('id') is returning FALSE when
$entity_storage is a ContentEntityNullStorage and
$entity_type is of bundle contact_message from class Drupal\contact\entity\Message
Remaining tasks
Write a patch so that
$id_definition = \Drupal::service('entity_field.manager')->getFieldStorageDefinitions($entity_type->id())[$entity_type_key];
does not result in an index error.
Comments
Comment #3
alexpottInteresting. If an entity has no storage tracking usage seems off.
Comment #6
alexpottComment #8
alexpottContact Message entity type and any other entity type that does not have an ID entity key are no longer trackable. Winning. Thanks for the bug report @daniel.pernold
Comment #9
alexpott