preprocesse page popsu

This commit is contained in:
armansansd
2021-08-11 10:22:31 +02:00
parent 958324cb7a
commit 368fb029fb
4 changed files with 29 additions and 3 deletions

View File

@@ -33,6 +33,20 @@ function popsu_preprocess_html(&$variables) {
}
}
function popsu_preprocess_field(&$variables){
$element = &$variables['element'];
// $items = &$variables['items'];
if (isset($element['#field_name'])) {
// kint($element['#field_name']);
if ($element['#field_name'] == 'field_sous_parties') {
// ['attributes'] = new Attribute();
// $variables['classes_array'][] = 'field_sous_parties';
// kint($variables);
}
}
}
function popsu_preprocess_views_view_unformatted(&$variables) {
$view = &$variables['view'];