This commit is contained in:
@@ -41,7 +41,12 @@ function popsu_preprocess_html(&$variables) {
|
||||
}
|
||||
|
||||
function popsu_preprocess_page(&$variables) {
|
||||
dump($variables);
|
||||
if(isset($variables['node'])){
|
||||
$node = $variables['node'];
|
||||
if(isset($node) && $node->hasField('field_videos') && $node->get('field_videos')->getString() != ""){
|
||||
$variables['attributes']['class'][] = 'ressources-video';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function popsu_preprocess_node(&$variables){
|
||||
|
Reference in New Issue
Block a user