Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / templates / EntityType.html.twig
diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/EntityType.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/EntityType.html.twig
new file mode 100644 (file)
index 0000000..a3b9417
--- /dev/null
@@ -0,0 +1,34 @@
+/**
+ * @file
+ * Contains \Drupal\{{ module }}\Entity\{{ class }}.
+ */
+
+namespace Drupal\{{ module }}\Entity;
+
+use Drupal\Core\Entity\ContentEntityBase;
+
+/**
+ * @EntityType(
+ *  id = "{{ info.id }}",
+ *  label = @Translation("{{ info.label }}"),
+ *  controllers = {
+ *    "storage" = "{{ info.controllers.storage }}
+ *  },
+ *  base_table = "{{ info.base_table }}",
+ *  entity_keys = {
+ *    "id" = "{{ info.keys.id }}",
+{% if info.keys.label %}
+ *    "label" = "{{ info.keys.label }}"
+{% endif %}
+ *  }
+ * )
+ */
+class {{ class }} extends ContentEntityBase {
+
+  /**
+   * @FIXME
+   * Move all logic relating to the {{ info.id }} entity type into this
+   * class. For more information, see https://www.drupal.org/node/1827470.
+   */
+
+}