Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / custom_theme.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/custom_theme.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/custom_theme.twig
new file mode 100644 (file)
index 0000000..c9728a3
--- /dev/null
@@ -0,0 +1,9 @@
+/**
+ * Implements hook_custom_theme().
+ */
+function {{ machine_name }}_custom_theme() {
+  // Allow the user to request a particular theme via a query parameter.
+  if (isset($_GET['theme'])) {
+    return $_GET['theme'];
+  }
+}