Commit 64e50246 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4619: updating preprocess node to work with new view mode refactoring

parent 1e2100c7
......@@ -43,7 +43,7 @@ function uw_ct_event_preprocess_node(&$variables) {
$uwService = \Drupal::service('uw_cfg_common.uw_service');
// Get the teaser variables.
$variables['teaser'] = $uwService->getTeaserContent($variables['node'], 'events', 'all');
$variables['teaser'] = $uwService->uwGetNodeContent($variables['node'], 'events', 'teaser', 'all');
// Unset the content variable, so that we do not get
// a second print of all the content.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment