function thunder_page_attachments in Thunder 8.4
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()
- 6.2.x 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 353 - 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 8 (Thunder | http://www.thunder.org)';
}
}
}