Skip to content

Commit

Permalink
Merge pull request #477 from City-of-Helsinki/UHF-8217_Remove-generat…
Browse files Browse the repository at this point in the history
…or-info

UHF-8217: Remove the generator tag from DOM
  • Loading branch information
dire authored Mar 29, 2023
2 parents 822b5da + af8e608 commit 1195bdf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helfi_platform_config.module
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ function helfi_platform_config_page_attachments(array &$attachments) : void {
$attachments['#attached']['library'][] = 'helfi_platform_config/clear_localstorage';
}

/**
* Implements hook_page_attachments_alter().
*/
function helfi_platform_config_page_attachments_alter(array &$attachments): void {
foreach ($attachments['#attached']['html_head'] as $key => $attachment) {
if ($attachment[1] == 'system_meta_generator') {
unset($attachments['#attached']['html_head'][$key]);
}
}
}

/**
* Implements hook_theme().
*/
Expand Down

0 comments on commit 1195bdf

Please sign in to comment.