diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module
index 066afcc..624a934 100644
--- a/core/modules/shortcut/shortcut.module
+++ b/core/modules/shortcut/shortcut.module
@@ -438,3 +438,11 @@ function shortcut_themes_installed($theme_list) {
     }
   }
 }
+
+/**
+ * Implements hook_entity_type_alter().
+ */
+function shortcut_entity_type_alter(array &$entity_types) {
+  // Shortcut entity does not supposed to be viewed.
+  $entity_types['shortcut']->setViewBuilderClass(NULL);
+}
diff --git a/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php b/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php
new file mode 100644
index 0000000..06f87a3
--- /dev/null
+++ b/core/modules/shortcut/tests/src/Kernel/ShortcutEntityTest.php
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\Tests\shortcut\Kernel;
+
+use Drupal\KernelTests\KernelTestBase;
+
+/**
+ * Tests shortcut entity.
+ *
+ * @group shortcut
+ */
+class ShortcutEntityTest extends KernelTestBase {
+
+  public static $modules = ['system', 'shortcut'];
+
+  /**
+   * Tests shortcut has no view builder class.
+   */
+  public function testShortcutViewBuilder() {
+    $entity_type = \Drupal::entityTypeManager()->getDefinition('shortcut');
+    $this->assertFalse($entity_type->hasViewBuilderClass());
+  }
+
+}
