You are here

public static function OfficialFacebookPixelOptions::getInstance in Official Facebook Pixel 8

Same name and namespace in other branches
  1. 7 src/OfficialFacebookPixelOptions.php \Drupal\official_facebook_pixel\OfficialFacebookPixelOptions::getInstance()
3 calls to OfficialFacebookPixelOptions::getInstance()
OfficialFacebookPixelInjection::injectPixelCode in src/OfficialFacebookPixelInjection.php
OfficialFacebookPixelSettingsForm::buildForm in src/Form/OfficialFacebookPixelSettingsForm.php
Form constructor.
official_facebook_pixel_page_attachments in ./official_facebook_pixel.module
Implements hook_page_attachments().

File

src/OfficialFacebookPixelOptions.php, line 36
Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelOptions.

Class

OfficialFacebookPixelOptions
Class OfficialFacebookPixelOptions.

Namespace

Drupal\official_facebook_pixel

Code

public static function getInstance() {
  if (is_null(self::$instance)) {
    self::$instance = new OfficialFacebookPixelOptions();
  }
  return self::$instance;
}