Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / theme.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/theme.twig
new file mode 100644 (file)
index 0000000..76935e8
--- /dev/null
@@ -0,0 +1,20 @@
+/**
+ * Implements hook_theme().
+ */
+function {{ machine_name }}_theme($existing, $type, $theme, $path) {
+  return [
+    'forum_display' => [
+      'variables' => ['forums' => NULL, 'topics' => NULL, 'parents' => NULL, 'tid' => NULL, 'sortby' => NULL, 'forum_per_page' => NULL],
+    ],
+    'forum_list' => [
+      'variables' => ['forums' => NULL, 'parents' => NULL, 'tid' => NULL],
+    ],
+    'forum_icon' => [
+      'variables' => ['new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0],
+    ],
+    'status_report' => [
+      'render element' => 'requirements',
+      'file' => 'system.admin.inc',
+    ],
+  ];
+}