Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestMulRev.php
diff --git a/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php b/web/core/modules/system/tests/modules/entity_test/src/Entity/EntityTestMulRev.php
new file mode 100644 (file)
index 0000000..f01675f
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+
+namespace Drupal\entity_test\Entity;
+
+/**
+ * Defines the test entity class.
+ *
+ * @ContentEntityType(
+ *   id = "entity_test_mulrev",
+ *   label = @Translation("Test entity - revisions and data table"),
+ *   handlers = {
+ *     "view_builder" = "Drupal\entity_test\EntityTestViewBuilder",
+ *     "access" = "Drupal\entity_test\EntityTestAccessControlHandler",
+ *     "form" = {
+ *       "default" = "Drupal\entity_test\EntityTestForm",
+ *       "delete" = "Drupal\entity_test\EntityTestDeleteForm"
+ *     },
+ *     "translation" = "Drupal\content_translation\ContentTranslationHandler",
+ *     "views_data" = "Drupal\views\EntityViewsData",
+ *     "route_provider" = {
+ *       "html" = "Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider",
+ *     },
+ *   },
+ *   base_table = "entity_test_mulrev",
+ *   data_table = "entity_test_mulrev_property_data",
+ *   revision_table = "entity_test_mulrev_revision",
+ *   revision_data_table = "entity_test_mulrev_property_revision",
+ *   admin_permission = "administer entity_test content",
+ *   translatable = TRUE,
+ *   show_revision_ui = TRUE,
+ *   entity_keys = {
+ *     "id" = "id",
+ *     "uuid" = "uuid",
+ *     "bundle" = "type",
+ *     "revision" = "revision_id",
+ *     "label" = "name",
+ *     "langcode" = "langcode",
+ *   },
+ *   links = {
+ *     "add-form" = "/entity_test_mulrev/add",
+ *     "canonical" = "/entity_test_mulrev/manage/{entity_test_mulrev}",
+ *     "delete-form" = "/entity_test/delete/entity_test_mulrev/{entity_test_mulrev}",
+ *     "edit-form" = "/entity_test_mulrev/manage/{entity_test_mulrev}/edit",
+ *     "revision" = "/entity_test_mulrev/{entity_test_mulrev}/revision/{entity_test_mulrev_revision}/view",
+ *   }
+ * )
+ */
+class EntityTestMulRev extends EntityTestRev {
+
+}