forked from facebookarchive/Facebook-Pixel-for-Drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OfficialFacebookPixelConfig.php
52 lines (46 loc) · 1.88 KB
/
OfficialFacebookPixelConfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
* Copyright (C) 2017-present, Facebook, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
/**
* @file
* Contains \Drupal\official_facebook_pixel
* \OfficialFacebookPixelConfig.
*/
namespace Drupal\official_facebook_pixel;
/**
* Class OfficialFacebookPixelConfig.
*
* @package Drupal\official_facebook_pixel
*/
class OfficialFacebookPixelConfig {
const CONFIG_NAME = 'official_facebook_pixel.settings';
const FORM_ID = 'official_facebook_pixel_settings';
const FORM_PII_KEY = 'pii_id';
const FORM_PII_TITLE = 'Use Advanced Matching on pixel?';
const FORM_PII_DESCRIPTION = 'Enabling Advanced Matching improves audience building.<br />For businesses that operate in the European Union, you may need to take additional action. Read the <a href="%s" target="_blank">Cookie Consent Guide for Sites and Apps</a> for suggestions on complying with EU privacy requirements. the Facebook Pixel ID';
const FORM_PII_DESCRIPTION_LINK = 'https://developers.facebook.com/docs/privacy/';
const FORM_PIXEL_KEY = 'pixel_id';
const FORM_PIXEL_TITLE = 'Pixel ID';
const FORM_PIXEL_DESCRIPTION = 'Enter the Facebook Pixel ID';
const SOURCE_7 = 'pldrupal-7';
const SOURCE_8 = 'pldrupal-8';
// integration config for Drupal7: INTEGRATION_KEY => PLUGIN_CLASS
public static function integrationConfigFor7() {
return array(
);
}
// integration config for Drupal8: INTEGRATION_KEY => PLUGIN_CLASS
public static function integrationConfigFor8() {
return array(
);
}
}