first rest request
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user