Skip to content

Commit

Permalink
Merge pull request #643 from City-of-Helsinki/UHF-8128_missing_h1
Browse files Browse the repository at this point in the history
UHF-8128: Missing H1
  • Loading branch information
khalima authored Apr 27, 2023
2 parents 6a4ee06 + 8cc0eba commit d84cd20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hdbt.theme
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ function hdbt_preprocess_block(&$variables): void {
$page_entity instanceof NodeInterface &&
$page_entity->hasField('field_hero') &&
$page_entity->hasField('field_has_hero') &&
boolval($page_entity->get('field_has_hero')->getString())
$page_entity->get('field_has_hero')->value &&
!$page_entity->get('field_hero')->isEmpty()
) {
$variables['hide_block'] = TRUE;
}
Expand Down

0 comments on commit d84cd20

Please sign in to comment.