function mcah_theme_preprocess_node(&$variables) { $node = $variables['node']; \Drupal::logger('mcah_theme')->debug('Preprocess function called for node ID: ' . $variables['node']->id()); if ($node->hasField('field_alw_complete') && $node->field_alw_complete->value) { // Change the view mode conditionally $variables['view_mode'] = 'alw'; } else { $variables['view_mode'] = 'default'; } } MCID

Image View Description:
Interior, nave, north arcade, shaft capital
Date:
begun ca. 11th century
Location:
Caen (France)
Title Variant:
Abbaye aux Dames, Abbaye de Sainte-Trinité
Work Type:
architecture
Culture:
French
Photographer:
Zachary Stewart
Image Source:

Image produced as part of Mapping Gothic France, Media Center for Art History, Department of Art History and Archaeology, © The Trustees of Columbia University

Record ID:
1098_00080