Version 1
[yaffs-website] / web / core / modules / system / tests / modules / module_installer_config_test / src / Entity / TestConfigType.php
diff --git a/web/core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php b/web/core/modules/system/tests/modules/module_installer_config_test/src/Entity/TestConfigType.php
new file mode 100644 (file)
index 0000000..5b8fac4
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\module_installer_config_test\Entity;
+
+use Drupal\Core\Config\Entity\ConfigEntityBase;
+
+/**
+ * Defines a configuration-based entity type used for testing.
+ *
+ * @ConfigEntityType(
+ *   id = "test_config_type",
+ *   label = @Translation("Test entity type"),
+ *   handlers = {
+ *     "list_builder" = "Drupal\Core\Entity\EntityListBuilder"
+ *   },
+ *   admin_permission = "administer modules",
+ *   config_prefix = "type",
+ *   entity_keys = {
+ *     "id" = "id",
+ *     "label" = "name"
+ *   }
+ * )
+ */
+class TestConfigType extends ConfigEntityBase {
+}