Skip to content

Commit

Permalink
Merge pull request #389 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
Develop -> Main - v1.10.1
  • Loading branch information
orakili authored Nov 1, 2023
2 parents 7b88dfa + db188db commit eedf509
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ function unocha_paragraphs_preprocess_paragraph__stories(array &$variables) {
if (is_array($item) && isset($item['#node'])) {
if (in_array($item['#node'], $featured)) {
$build[$key]['#attributes']['class'][] = 'featured';
// Use a different cache key to ensure the added class is taken into
// account.
$build[$key]['#cache']['keys'][] = 'featured';
}

// Only change the view mode of the first story.
Expand Down

0 comments on commit eedf509

Please sign in to comment.