You are here

function social_core_page_attachments in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_core/social_core.module \social_core_page_attachments()
  2. 10.3.x modules/social_features/social_core/social_core.module \social_core_page_attachments()
  3. 10.0.x modules/social_features/social_core/social_core.module \social_core_page_attachments()
  4. 10.1.x modules/social_features/social_core/social_core.module \social_core_page_attachments()

Implements hook_page_attachments().

File

modules/social_features/social_core/social_core.module, line 31
The Social core module.

Code

function social_core_page_attachments(array &$attachments) {

  // Unconditionally attach library to the page.
  $attachments['#attached']['library'][] = 'social_core/accessibility';

  // The library with logo improvements on the top of the gin toolbar.
  $attachments['#attached']['library'][] = 'social_core/admin-toolbar';
}