public static function OfficialFacebookPixelInjection::injectPixelCode in Official Facebook Pixel 7
Same name and namespace in other branches
- 8 src/OfficialFacebookPixelInjection.php \Drupal\official_facebook_pixel\OfficialFacebookPixelInjection::injectPixelCode()
1 call to OfficialFacebookPixelInjection::injectPixelCode()
- official_facebook_pixel_page_build in ./
official_facebook_pixel.module - Implements hook_page_build().
File
- src/
OfficialFacebookPixelInjection.php, line 32 - Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelInjection.
Class
- OfficialFacebookPixelInjection
- Class OfficialFacebookPixelInjection.
Namespace
Drupal\official_facebook_pixelCode
public static function injectPixelCode() {
$options = OfficialFacebookPixelOptions::getInstance();
PixelScriptBuilder::initialize($options
->getPixelId());
self::injectScriptCode($options);
self::injectNoScriptCode();
foreach (OfficialFacebookPixelConfig::integrationConfigFor7() as $key => $value) {
$class_name = 'Drupal\\official_facebook_pixel\\integration\\' . $value;
$class_name::injectPixelCode();
}
}