doActiveInactive(1, $modulename); } /** * Implements hook_preprocess(). */ function seers_cookie_consent_privacy_policy_preprocess_page(&$variables, $hook) { $variables['#attached']['library'][] = 'seers_cookie_consent_privacy_policy/global'; } /** * Implements hook_page_attachments(). */ function seers_cookie_consent_privacy_policy_page_attachments(&$page) { $config = \Drupal::config('seers_cookie_consent_privacy_policy.seercookieconsent')->getRawData(); /** * Initial JS. */ if (!empty($config["cookie_id"])) { $page['#attached']['html_head'][] = [ [ // Add a