diving on partie

This commit is contained in:
2026-01-26 10:23:04 +01:00
parent bf3c7a562b
commit dec9de2644
11 changed files with 363 additions and 40 deletions

View File

@@ -86,17 +86,17 @@ function mathallo_preprocess_contanier(&$variables) {
}
/**
* Implements hook_preprocess_HOOK() for node.html.twig.
*/
function mathallo_preprocess_field(&$variables) {
if (!isset($variables["title_attributes"]['class'])) {
$variables["title_attributes"]['class'] = [];
}
$variables['title_attributes']['class'][] = 'field-label';
// function A(){
// $attr = 6;
// B($attr);
// print($attr);
// }
// function B($attr){
// $attr = 3;
// print($attr);
// }
// A();
if (!isset($variables["attributes"]['class'])) {
$variables["attributes"]['class'] = [];
}
$variables['attributes']['class'][] = $variables['field_name'];
}