Version 1
[yaffs-website] / vendor / drupal / console / templates / module / src / Entity / entity-content-with-bundle.theme.php.twig
diff --git a/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme.php.twig b/vendor/drupal/console/templates/module/src/Entity/entity-content-with-bundle.theme.php.twig
new file mode 100644 (file)
index 0000000..6c3a7b7
--- /dev/null
@@ -0,0 +1,16 @@
+{% block hook_theme %}
+
+/**
+ * Implements hook_theme().
+ */
+function {{ module }}_theme() {
+  $theme = [];
+{% include '/module/src/Entity/entity-content.theme.php.twig' with {'entity_name': entity_name, } %}
+  $theme['{{ entity_name }}_content_add_list'] = [
+    'render element' => 'content',
+    'variables' => ['content' => NULL],
+    'file' => '{{ entity_name }}.page.inc',
+  ];
+  return $theme;
+}
+{% endblock %}