You are here

function cookie_content_blocker_page_attachments in Cookie Content Blocker 8

Implements hook_page_attachments().

File

./cookie_content_blocker.module, line 25
Contains the main module code for Cookie content blocker.

Code

function cookie_content_blocker_page_attachments(array &$attachments) {
  $attachments['#attached']['library'][] = 'cookie_content_blocker/cookie-content-blocker';
  $attachments['#attached']['drupalSettings']['cookieContentBlocker']['consentAwareness'] = Drupal::config('cookie_content_blocker.settings')
    ->get('consent_awareness');
}