Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hdbt.theme
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,12 @@ function hdbt_preprocess_paragraph__unit_contact_card(array &$variables) : void
return;
}

// Collect cache tags from tpr_unit entity.
$variables['#cache']['tags'] = Cache::mergeTags(
$unit->getCacheTags(),
$variables['#cache']['tags'] ?? []
);

$unit_translation = $unit->getTranslation($langcode);
$variables['unit_contact_card'] = [];

Expand Down