You are here

public static function GTMSettings::getInstance in GoogleTagManager 7.2

Returns singleton instance of this class.

Return value

GTMSettings The instance.

3 calls to GTMSettings::getInstance()
google_tag_settings_form in includes/form/settings.inc
Form constructor for the container form.
GTMBaseTestCase::modifySettings in tests/google_tag.base.test
Modify settings for test purposes.
GTMContainerExport::variables_get in plugins/export_ui/container.php
Returns associative array of default values keyed by variable name.

File

includes/entity/settings.inc, line 33

Class

GTMSettings
Defines the module settings entity.

Code

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