Initial Drupal 11 with DDEV setup
This commit is contained in:
17
vendor/chi-teck/drupal-code-generator/templates/_javascript/javascript.twig
vendored
Normal file
17
vendor/chi-teck/drupal-code-generator/templates/_javascript/javascript.twig
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @file
|
||||
* {{ name }} behaviors.
|
||||
*/
|
||||
(function (Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
Drupal.behaviors.{{ behavior }} = {
|
||||
attach (context, settings) {
|
||||
|
||||
console.log('It works!');
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
} (Drupal));
|
||||
Reference in New Issue
Block a user