first rest request

This commit is contained in:
2024-07-16 17:01:09 +02:00
parent b4077639be
commit 5deb49de6d
33 changed files with 529 additions and 258 deletions

View File

@@ -12,13 +12,14 @@ function caravane_page_attachments_alter(&$page) {
// $attachments['#attached']['html_head'][] = [['src' => 'http://localhost:5173/assets/js/main.js', 'type' => 'module'],'vite-main'];
// $page['#attached']['library'][] = 'http://localhost:5173/assets/js/main.js';
$page['#attached']['library'][] = 'caravane/vitehmr';
}else{
$page['#attached']['library'][] = 'caravane/global';
}
}
/**
* Implements hook_preprocess_HOOK() for html.html.twig.
*/
function caravane_preprocess_html(&$variables) {
}
/**
@@ -34,3 +35,23 @@ function caravane_preprocess_page(&$variables) {
function caravane_preprocess_node(&$variables) {
}
function caravane_preprocess_contanier(&$variables) {
}
// function A(){
// $attr = 6;
// B($attr);
// print($attr);
// }
// function B($attr){
// $attr = 3;
// print($attr);
// }
// A();