comparison vendor/chi-teck/drupal-code-generator/templates/d8/javascript.twig @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 /**
2 * @file
3 * {{ name }} behaviors.
4 */
5
6 (function ($, Drupal) {
7
8 'use strict';
9
10 /**
11 * Behavior description.
12 */
13 Drupal.behaviors.{{ machine_name|camelize(false) }} = {
14 attach: function (context, settings) {
15
16 console.log('It works!');
17
18 }
19 };
20
21 } (jQuery, Drupal));