We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de972c4 commit 930e433Copy full SHA for 930e433
web/themes/custom/fds_ballerup_theme/fds_ballerup_theme.theme
@@ -117,7 +117,7 @@ function fds_ballerup_theme_preprocess_node(array &$variables) {
117
/** @var \Drupal\node\NodeInterface $node */
118
$node = $variables['node'];
119
120
- if ($variables['view_mode'] == 'search_result' && $node->getType() == 'os2web_page') {
+ if (($variables['view_mode'] == 'search_result' || $variables['view_mode'] == 'search_index') && $node->getType() == 'os2web_page') {
121
$sectionLabels = [];
122
if ($section_id = $node->field_os2web_page_section->target_id) {
123
$parents = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadAllParents($section_id);
0 commit comments