function thunder_page_attachments in Thunder 6.2.x
Same name and namespace in other branches
- 8.5 thunder.profile \thunder_page_attachments()
- 8.2 thunder.profile \thunder_page_attachments()
- 8.3 thunder.profile \thunder_page_attachments()
- 8.4 thunder.profile \thunder_page_attachments()
- 6.0.x thunder.profile \thunder_page_attachments()
- 6.1.x thunder.profile \thunder_page_attachments()
Implements hook_page_attachments().
File
- ./
thunder.profile, line 135 - Enables modules and site configuration for a thunder site installation.
Code
function thunder_page_attachments(array &$attachments) {
foreach ($attachments['#attached']['html_head'] as &$html_head) {
$name = $html_head[1];
if ($name == 'system_meta_generator') {
$tag =& $html_head[0];
$tag['#attributes']['content'] = 'Drupal 9 (Thunder | https://www.thunder.org)';
}
}
}