Skip to content
Snippets Groups Projects
Commit 38a5b6b9 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding view type for media flags on nodes

parent fca68637
No related branches found
No related tags found
3 merge requests!284Feature/istwcms 5880 ebremner banners above,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
......@@ -318,6 +318,7 @@ class UwNodeFieldValue {
'transition_speed' => $node->field_uw_transition_speed->value,
'media_width' => $media_width_classes ?? NULL,
'bundle' => $node->getType(),
'uuid' => uniqid(),
];
return $banners;
......
......@@ -609,7 +609,7 @@ function uw_cfg_common_preprocess_node(&$variables) {
}
// Set the media flags for the node.
$variables['media_flags'] = \Drupal::service('uw_cfg_common.uw_service')->uwGetMediaFlags($variables['node']);
$variables['media_flags'] = \Drupal::service('uw_cfg_common.uw_service')->uwGetMediaFlags($variables['node'], $variables['view_mode']);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment