function type_style_page_attachments in Type Style 8
Implements hook_page_attachments().
File
- ./
type_style.module, line 102 - Hook implementations for the Type Style module.
Code
function type_style_page_attachments(array &$attachments) {
$config = \Drupal::config('type_style.settings');
if ($config
->get('use_cdn')) {
$attachments['#attached']['library'][] = 'type_style/' . $config
->get('icon_type');
}
}