Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestNew.php
diff --git a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNew.php
new file mode 100644 (file)
index 0000000..c3845c6
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\entity_test\Entity;
+
+/**
+ * Defines the test entity class for testing definition addition.
+ *
+ * This entity type is initially not defined. It is enabled when needed to test
+ * the related updates.
+ *
+ * @ContentEntityType(
+ *   id = "entity_test_new",
+ *   label = @Translation("New test entity"),
+ *   base_table = "entity_test_new",
+ *   entity_keys = {
+ *     "id" = "id",
+ *     "uuid" = "uuid",
+ *     "bundle" = "type",
+ *     "label" = "name",
+ *     "langcode" = "langcode",
+ *   }
+ * )
+ */
+class EntityTestNew extends EntityTest {
+}