Randomg things.

This commit is contained in:
calcu1on
2025-10-15 22:49:16 -04:00
parent 73b1faf9cc
commit 09043d7884
12 changed files with 8214 additions and 114 deletions

View File

@@ -0,0 +1,5 @@
testing:
js:
js/testing.js: {}
dependencies:
- core/drupal

View File

@@ -0,0 +1,5 @@
<?php
function dc_tests_preprocess_node(&$variables) {
$variables['#attached']['library'][] = 'dc_tests/testing';
}

View File

@@ -0,0 +1,10 @@
((Drupal, once) => {
Drupal.behaviors.myBehavior = {
attach(context) {
let target = once('myBehavior', 'body');
target.forEach((t) => {
alert('Behavior attached test');
});
},
};
})(Drupal, once);

View File

@@ -0,0 +1 @@
<h1>Hello World</h1>

File diff suppressed because one or more lines are too long