diff --git a/core/lib/Drupal/Core/Entity/Schema/ContentEntitySchemaHandler.php b/core/lib/Drupal/Core/Entity/Schema/ContentEntitySchemaHandler.php index 1fb9b53..c1e636c 100644 --- a/core/lib/Drupal/Core/Entity/Schema/ContentEntitySchemaHandler.php +++ b/core/lib/Drupal/Core/Entity/Schema/ContentEntitySchemaHandler.php @@ -266,7 +266,7 @@ protected function getDefaultLangcodeSchema() { * A partial schema array for the base table. */ protected function initializeBaseTable() { - $key = $this->entityType->getKey('uuid'); + $key = $this->entityType->getKey('uuid') ?: 'uuid'; $schema = array( 'description' => "The base table for {$this->entityType->id()} entities.", 'primary key' => array($this->entityType->getKey('id')),