Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / admin_paths.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/admin_paths.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/admin_paths.twig
new file mode 100644 (file)
index 0000000..bb7114c
--- /dev/null
@@ -0,0 +1,10 @@
+/**
+ * Implements hook_admin_paths().
+ */
+function {{ machine_name }}_admin_paths() {
+  $paths = array(
+    'mymodule/*/add' => TRUE,
+    'mymodule/*/edit' => TRUE,
+  );
+  return $paths;
+}