Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestNoBundle.php
diff --git a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoBundle.php b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoBundle.php
new file mode 100644 (file)
index 0000000..5907021
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\entity_test\Entity;
+
+/**
+ * Test entity class with no bundle.
+ *
+ * @ContentEntityType(
+ *   id = "entity_test_no_bundle",
+ *   label = @Translation("Entity Test without bundle"),
+ *   base_table = "entity_test_no_bundle",
+ *   entity_keys = {
+ *     "id" = "id",
+ *     "revision" = "revision_id",
+ *   },
+ *   admin_permission = "administer entity_test content",
+ *   links = {
+ *     "add-form" = "/entity_test_no_bundle/add",
+ *   },
+ * )
+ */
+class EntityTestNoBundle extends EntityTest {
+
+}