Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / _layout / javascript.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/javascript.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/_layout/javascript.twig
new file mode 100644 (file)
index 0000000..e4ae4dc
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * @file
+ * Custom behaviors for {{ layout_name|lower }} layout.
+ */
+
+(function (Drupal) {
+
+  'use strict';
+
+  Drupal.behaviors.{{ layout_machine_name|camelize(false) }} = {
+    attach: function (context, settings) {
+
+      console.log('It works!');
+
+    }
+  };
+
+} (Drupal));