diff --git a/core/lib/Drupal/Core/Entity/EntityTypeManager.php b/core/lib/Drupal/Core/Entity/EntityTypeManager.php
index 4bfe9b23df..a7da9f726a 100644
--- a/core/lib/Drupal/Core/Entity/EntityTypeManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityTypeManager.php
@@ -220,7 +220,12 @@ public function getListBuilder($entity_type_id) {
    */
   public function getFormObject($entity_type_id, $operation) {
     if (!$class = $this->getDefinition($entity_type_id, TRUE)->getFormClass($operation)) {
-      throw new InvalidPluginDefinitionException($entity_type_id, sprintf('The "%s" entity type did not specify a "%s" form class.', $entity_type_id, $operation));
+      // If there is not a class specified for this operation, try the default
+      // class. This condition is likely used by form modes added through
+      // the form modes user interface.
+      if (!$class = $this->getDefinition($entity_type_id, TRUE)->getFormClass('default')) {
+        throw new InvalidPluginDefinitionException($entity_type_id, sprintf('The "%s" entity type did not specify a "%s" form class and there is not a default class.', $entity_type_id, $operation));
+      }
     }
 
     $form_object = $this->classResolver->getInstanceFromDefinition($class);
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
index 4a89d0c5aa..7aee760d72 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
@@ -263,7 +263,9 @@ public function testGetFormObjectInvalidOperation() {
     $entity->getFormClass('edit')->willReturn('');
     $this->setUpEntityTypeDefinitions(['test_entity_type' => $entity]);
 
-    $this->expectException(InvalidPluginDefinitionException::class);
+    $entity->getFormClass('default')->willReturn('');
+    $this->setExpectedException(InvalidPluginDefinitionException::class,
+      'The "test_entity_type" entity type did not specify a "edit" form class and there is not a default class');
     $this->entityTypeManager->getFormObject('test_entity_type', 'edit');
   }
 
