Skip to content

Commit

Permalink
Merge pull request #583 from biglotteryfund/alert-box-component
Browse files Browse the repository at this point in the history
Updated ContentHelpers.php to include case for alertBox
  • Loading branch information
joshgriff465 authored Apr 13, 2021
2 parents fffc57e + c7d2331 commit eb3404d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ContentHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ public static function extractFlexibleContent(Entry $entry, $locale, $children =
'lastUpdatedField' => $block->updatedDate ? $entry->dateUpdated : null,
];
break;
case 'alertBox':
$data = [
'content' => $block->alertBoxContent ?? null,
];
break;
case 'childPageList':
if (count($children) > 0) {
// Work out if we can display a grid of photos
Expand Down

0 comments on commit eb3404d

Please sign in to comment.