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